PageAuthorization.xaml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <Page x:Class="WriteErase.ClassPages.PageAuthorization"
  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:WriteErase.ClassPages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="PageAuthorization"
  10. FontFamily="Comic Sans MS">
  11. <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="15 10">
  12. <Border
  13. MinWidth="300"
  14. MinHeight="250"
  15. Padding="15 10"
  16. CornerRadius="15"
  17. Background="{StaticResource yellowGreen}">
  18. <StackPanel>
  19. <TextBlock
  20. Text="Авторизация"
  21. Style="{StaticResource Header}"
  22. Margin="0 5 0 15"/>
  23. <GroupBox Header="Логин">
  24. <TextBox
  25. Name="tbxLogin"/>
  26. </GroupBox>
  27. <GroupBox Header="Пароль">
  28. <PasswordBox
  29. Name="pbxPassword"/>
  30. </GroupBox>
  31. <GroupBox Header="Каптча" Name="gbCaptcha" Visibility="Collapsed">
  32. <Grid>
  33. <Grid.ColumnDefinitions>
  34. <ColumnDefinition Width="*"/>
  35. <ColumnDefinition Width="Auto"/>
  36. </Grid.ColumnDefinitions>
  37. <Grid.RowDefinitions>
  38. <RowDefinition Height="*"/>
  39. <RowDefinition Height="*"/>
  40. </Grid.RowDefinitions>
  41. <UserControl Name="cCaptcha"
  42. Margin="10 0"
  43. Grid.Row="0" Grid.Column="0"/>
  44. <Button Name="btnGenerateCaptcha"
  45. Click="btnGenerateCaptchaClick"
  46. Style="{StaticResource Restart}"
  47. Grid.Row="0" Grid.Column="1"/>
  48. <GroupBox Header="Введите каптчу" Grid.Row="1" Grid.ColumnSpan="2">
  49. <TextBox Name="tbxCaptcha" />
  50. </GroupBox>
  51. </Grid>
  52. </GroupBox>
  53. <Button
  54. Name="btnEnter"
  55. Content="Войти"
  56. Click="btnEnterClick"
  57. Margin="0 20"/>
  58. <Button
  59. Name="btnGuest"
  60. Content="Войти как гость"
  61. Click="btnGuestClick"
  62. Style="{StaticResource WithoutBackground}"/>
  63. </StackPanel>
  64. </Border>
  65. </Grid>
  66. </Page>