Guest User

Untitled

a guest
Jan 2nd, 2024
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.88 KB | None | 0 0
  1. <Page x:Class="QRCodeApp.Create"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  7. xmlns:local="clr-namespace:QRCodeApp"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800"
  10. Background="Snow"
  11. Title="Create">
  12.  
  13.     <Grid>
  14.         <!--Column 1-->
  15.         <Button Grid.Column="0" Click="Back" Background="#FF9DBEEE" Foreground="Black" Width="100" Height="40" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="22">Back</Button>
  16.  
  17.         <Label FontSize="19" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="66" FontFamily="Yu Gothic UI Light" Height="34" Margin="97,88,237,327.6" MinHeight="34" MinWidth="66">Name</Label>
  18.         <TextBox VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="275" Height="30" x:Name="name" Margin="99,122,26,297.6" MinHeight="30" MinWidth="275"/>
  19.  
  20.         <Label FontSize="19" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="110" FontFamily="Yu Gothic UI Light" Height="34" Margin="97,170,193,245.6" MinHeight="34" MinWidth="110">URL or Text</Label>
  21.         <TextBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="275" Height="30" x:Name="text" Margin="99,204,26,215.6" MinHeight="30" MinWidth="275" TextChanged="text_TextChanged"/>
  22.  
  23.         <Label MinHeight="34" MinWidth="62" MaxHeight="34" MaxWidth="62" FontSize="19" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="97,250,241,165.6" Width="62" FontFamily="Yu Gothic UI Light" Height="34" Content="Color"/>
  24.         <xctk:ColorPicker MinHeight="25" MinWidth="68" MaxHeight="25" MaxWidth="68" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="68" Height="25" x:Name="colorPicker" SelectedColorChanged="ColorPicker_SelectedColorChanged" SelectedColor="Black" Margin="164,255,168,169.6" />
  25.  
  26.         <Label MinHeight="34" MinWidth="66" MaxHeight="34" MaxWidth="66" FontSize="19" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="268,250,66,165.6" Width="66" FontFamily="Yu Gothic UI Light" Height="34">Format</Label>
  27.         <ComboBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="comboBox" SelectedIndex="2" IsEditable="False" Width="60" Height="23" MinWidth="60" MinHeight="23" Margin="334,255,6,171.6">
  28.             <ComboBoxItem >
  29.                 JPEG
  30.             </ComboBoxItem>
  31.             <ComboBoxItem>
  32.                 EXIF
  33.             </ComboBoxItem>
  34.             <ComboBoxItem>
  35.                 PNG
  36.             </ComboBoxItem>
  37.             <ComboBoxItem>
  38.                 BMP
  39.             </ComboBoxItem>
  40.         </ComboBox>
  41.  
  42.         <Label FontSize="19" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="97,302,241,113.6" Width="62" FontFamily="Yu Gothic UI Light" Height="34" Content="Size" RenderTransformOrigin="0.466,0.497" MinWidth="62" MinHeight="34"/>
  43.         <Slider HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ValueChanged="Slider_ValueChanged" Value="200" Minimum="110" Maximum="400" Grid.Column="0" Width="130" Height="30" Margin="147,306,123,113.6" MinWidth="130" MinHeight="30"></Slider>
  44.         <Label Name="size" FontSize="19" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="299,302,26,113.6" Width="75" FontFamily="Yu Gothic UI Light" Height="34" Content="200x200" RenderTransformOrigin="0.466,0.497" MinWidth="75" MinHeight="34" />
  45.  
  46.         <Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Click="Generate" Background="#FF1CBD5E" Foreground="White" FontSize="22" Width="130" Height="41" Margin="147,371,123,37.6" MinWidth="130" MinHeight="41">Generate</Button>
  47.  
  48.  
  49.         <Rectangle Fill="Black" Height="449" Width="1.5" HorizontalAlignment="Right" MinWidth="1.5" MinHeight="449"></Rectangle>
  50.  
  51.         <!--Column 2-->
  52.         <Image x:Name="qrcode" Opacity="0.45" Source="/Images/sampleQR.png" Grid.Column="1" Width="200" Height="200" Margin="5,0,-5,49.6"/>
  53.  
  54.        
  55.         <Button HorizontalAlignment="Stretch" Click="AddIcon" Background="#FF1CBD5E" Foreground="White" Width="110" Height="40" VerticalAlignment="Stretch" FontSize="22" Grid.Column="1" Margin="71,372,219,37.6" MinWidth="110">Add Icon</Button>
  56.         <Button Click="Save" Background="#FF1CBD5E" Foreground="White" Width="110" Height="40" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" FontSize="22" Grid.Column="1" Margin="212,371,78,37.6" MinWidth="110" MinHeight="41">Save</Button>
  57.  
  58.  
  59.         <Grid.ColumnDefinitions>
  60.             <ColumnDefinition Width="*"></ColumnDefinition>
  61.             <ColumnDefinition Width="*"></ColumnDefinition>
  62.         </Grid.ColumnDefinitions>
  63.     </Grid>
  64. </Page>
Advertisement
Add Comment
Please, Sign In to add comment