Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.83 KB | None | 0 0
  1. <Window x:Class="_40401270.MainWindow"
  2.         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5.         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6.         xmlns:local="clr-namespace:_40401270"
  7.         mc:Ignorable="d"
  8.         Title="MainWindow" Height="830.323" Width="1328.387">
  9.     <Grid Margin="10,0,2,-31" RenderTransformOrigin="0.591,0.563">
  10.         <Grid.ColumnDefinitions>
  11.             <ColumnDefinition Width="440*"/>
  12.             <ColumnDefinition/>
  13.         </Grid.ColumnDefinitions>
  14.         <Button x:Name="btnValidate" Content="Validate" HorizontalAlignment="Left" Margin="154,531,0,0" VerticalAlignment="Top" Width="188" Height="61" Click="ButtonValidate" FontSize="16" RenderTransformOrigin="-0.182,-1.647"/>
  15.         <Button x:Name="btnClear" Content="Clear" HorizontalAlignment="Left" Margin="172,633,0,0" VerticalAlignment="Top" Width="156" Height="61" Click="ButtonClear" FontSize="16"/>
  16.         <TextBox HorizontalAlignment="Left" Height="31" Margin="202,61,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="140"/>
  17.         <TextBox x:Name= "txtName" HorizontalAlignment="Left" Height="31" Margin="202,61,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="140"/>
  18.         <TextBox x:Name="txtSurname" HorizontalAlignment="Left" Height="32" Margin="949,74,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="141"/>
  19.         <Label x:Name= "lblName" Content="Name:" HorizontalAlignment="Left" Margin="93,61,0,0" VerticalAlignment="Top" FontSize="20" FontWeight="Bold" FontFamily="Ubuntu" Height="45" Width="82"/>
  20.         <Label x:Name= "lblSurname" Content="Surname:" HorizontalAlignment="Left" Margin="823,67,0,0" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" FontFamily="Ubuntu" Height="39" Width="94"/>
  21.         <Label x:Name= "lblAddress1" Content="Address 1:" HorizontalAlignment="Left" Margin="93,151,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="16" FontFamily="Ubuntu" Height="40" Width="104"/>
  22.         <Label x:Name="lblAddress2" Content="Address 2:" HorizontalAlignment="Left" Margin="813,151,0,0" VerticalAlignment="Top" FontWeight="Bold" FontFamily="Ubuntu" FontSize="16" Height="40" Width="104"/>
  23.         <Label x:Name="lblCity" Content="City:" HorizontalAlignment="Left" Margin="100,232,0,0" VerticalAlignment="Top" FontWeight="Bold" FontFamily="Ubuntu" FontSize="16" Height="38" Width="51"/>
  24.         <Label x:Name="lblPostcode" Content="Postcode:" HorizontalAlignment="Left" Margin="823,232,0,0" VerticalAlignment="Top" FontWeight="Bold" FontFamily="Ubuntu" FontSize="16" Height="38" Width="99"/>
  25.         <Label x:Name="lblEmail" Content="Email:" HorizontalAlignment="Left" Margin="103,335,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="16" FontFamily="Ubuntu" Height="40" Width="64"/>
  26.         <ListBox x:Name="listCountry" HorizontalAlignment="Left" Height="139" Margin="974,515,0,0" Visibility="Hidden" VerticalAlignment="Top" Width="116"  RenderTransformOrigin="2.988,0.495"/>
  27.         <CheckBox x:Name="chkTrue"  Content="True" HorizontalAlignment="Left" Margin="1040,465,0,0" VerticalAlignment="Top" Checked="internationalStudentCheckBoxSelected" Height="21" Width="50"/>
  28.         <CheckBox x:Name="chkFalse" Content="False" HorizontalAlignment="Left" Margin="1152,466,0,0" VerticalAlignment="Top" Height="20" Width="53" Checked="nonInternationStudentCheckedSelected"/>
  29.         <Label x:Name="lblInternationalStudent" Content="International student:" HorizontalAlignment="Left" Margin="725,457,0,0" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" FontFamily="Ubuntu" Height="40" Width="207"/>
  30.         <TextBox x:Name="txtAddres1" HorizontalAlignment="Left" Height="33" Margin="202,151,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="140"/>
  31.         <TextBox x:Name="txtCity" HorizontalAlignment="Left" Height="31" Margin="202,232,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="140" FontSize="16"  FontFamily="Ubuntu"/>
  32.         <TextBox x:Name="txtEmail" HorizontalAlignment="Left" Height="33" Margin="202,335,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="140" />
  33.         <TextBox x:Name="txtAddres2" HorizontalAlignment="Left" Height="33" Margin="949,151,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="141"/>
  34.         <TextBox x:Name="txtPostcode" HorizontalAlignment="Left" Height="31" Margin="949,239,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="141"/>
  35.         <TextBlock x:Name="lblCountry" HorizontalAlignment="Left" Margin="823,515,0,0" TextWrapping="Wrap" Text="Country" Visibility="Hidden" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" FontFamily="Ubuntu" Height="25" Width="71"/>
  36.         <Label x:Name="lblCourse" Content="Course:" HorizontalAlignment="Left" Margin="823,335,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="16" FontFamily="Ubuntu"/>
  37.         <Label x:Name ="lblAge" Content="Age:" HorizontalAlignment="Left" Margin="103,439,0,0" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" FontFamily="Ubuntu" RenderTransformOrigin="-0.745,-0.098"/>
  38.         <TextBox x:Name="txtAge" HorizontalAlignment="Left" Height="23" Margin="202,439,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120"/>
  39.         <ComboBox x:Name = "ComboBoxCourse"  HorizontalAlignment="Left" Height="23" Margin="949,345,0,0" VerticalAlignment="Top" Width="120" AllowDrop="True">
  40.             <ComboBox.GroupStyle>
  41.                 <GroupStyle/>
  42.                 <GroupStyle/>
  43.                 <GroupStyle/>
  44.             </ComboBox.GroupStyle>
  45.             <ComboBoxItem Content="Computing"/>
  46.             <ComboBoxItem Content="Art"/>
  47.             <ComboBoxItem Content="Math"/>
  48.         </ComboBox>
  49.  
  50.  
  51.     </Grid>
  52. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement