Regis.xaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <Page x:Class="PFC.Program.Verification.Pages.Regis"
  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:local="clr-namespace:PFC.Program.Verification.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450"
  9. d:DesignWidth="800"
  10. Title="PFC - Регистрация">
  11. <Grid Background="#FFFF8000">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="50"/>
  14. <RowDefinition Height="400"/>
  15. </Grid.RowDefinitions>
  16. <!--Кнопка назад-->
  17. <Button Name="back_Btn"
  18. TabIndex="0"
  19. Style="{DynamicResource ButtonStyle}"
  20. Content="Назад"
  21. HorizontalAlignment="Left"
  22. Click="back_Btn_Click"/>
  23. <!--GroupBox c элементами для регистрации-->
  24. <GroupBox Style="{DynamicResource GroupBoxStyle}"
  25. Header="Регистрация"
  26. Width="160"
  27. Grid.Row="1"
  28. Height="200"
  29. HorizontalAlignment="Center"
  30. VerticalAlignment="Top"
  31. Margin="0 40 0 0">
  32. <Grid>
  33. <!--Сетка для элементов в GroupBox-->
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="60"/>
  36. <RowDefinition Height="60"/>
  37. <RowDefinition Height="60"/>
  38. </Grid.RowDefinitions>
  39. <!--Логин-->
  40. <TextBlock Grid.Row="0"
  41. HorizontalAlignment="Left"
  42. Text="Логин*"
  43. FontSize="16"
  44. VerticalAlignment="Top"
  45. Background="Gray"
  46. Padding="3 0 3 0"
  47. Foreground="White"
  48. Margin="14,10,0,0" Height="20"/>
  49. <TextBox Name="textBox_login"
  50. TabIndex="1"
  51. Grid.Row="0"
  52. Style="{DynamicResource TextBoxStyle}"
  53. HorizontalAlignment="Center"
  54. VerticalAlignment="Top"
  55. MaxLength="30"
  56. Margin="0,30,0,0">
  57. <TextBox.Resources>
  58. <Style TargetType="Border">
  59. <Setter Property="CornerRadius" Value="0 5 5 5"/>
  60. </Style>
  61. </TextBox.Resources>
  62. </TextBox>
  63. <!--Пароль-->
  64. <TextBlock HorizontalAlignment="Left"
  65. Text="Пароль*"
  66. Foreground="White"
  67. Background="Gray"
  68. Padding="3 0 3 0"
  69. FontSize="16"
  70. VerticalAlignment="Top"
  71. Margin="14,6,0,0"
  72. Grid.Row="1"/>
  73. <PasswordBox Name="passwordBox_password"
  74. Grid.Row="1"
  75. TabIndex="2"
  76. Style="{DynamicResource PasswordBoxStyle}"
  77. HorizontalAlignment="Center"
  78. VerticalAlignment="Top"
  79. MaxLength="50"
  80. Margin="0,25,0,0"/>
  81. <!--Секретная фраза-->
  82. <TextBlock Grid.Row="2"
  83. HorizontalAlignment="Left"
  84. Text="Фраза"
  85. FontSize="16"
  86. VerticalAlignment="Top"
  87. Background="Gray"
  88. Padding="3 0 3 0"
  89. Margin="14,6,0,0"
  90. Foreground="White"
  91. Height="20"/>
  92. <TextBox Name="textBox_phrase"
  93. TabIndex="3"
  94. MaxLength="50"
  95. Grid.Row="2"
  96. Margin="0,25,0,0"
  97. Style="{DynamicResource TextBoxStyle}"
  98. HorizontalAlignment="Center"
  99. VerticalAlignment="Top" >
  100. <TextBox.Resources>
  101. <Style TargetType="Border">
  102. <Setter Property="CornerRadius" Value="0 5 5 5"/>
  103. </Style>
  104. </TextBox.Resources>
  105. </TextBox>
  106. </Grid>
  107. </GroupBox>
  108. <!--Кнопка регистрации-->
  109. <Button Style="{DynamicResource ButtonStyle}"
  110. Grid.Row="2"
  111. TabIndex="4"
  112. Width="160"
  113. Margin="0 0 0 120"
  114. VerticalAlignment="Bottom"
  115. Content="Зарегистрироваться"
  116. Click="button_Registration_Click">
  117. </Button>
  118. </Grid>
  119. </Page>