LogWindow.xaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <Window x:Class="Kusach.LogWindow"
  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:Kusach"
  7. mc:Ignorable="d"
  8. Loaded="OnLoad"
  9. ResizeMode="NoResize"
  10. Title="Окно входа"
  11. Height="350" Width="600"
  12. WindowStartupLocation="CenterScreen">
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition/>
  16. <RowDefinition Height="99"/>
  17. </Grid.RowDefinitions>
  18. <StackPanel
  19. Grid.Row="0"
  20. Orientation="Vertical"
  21. VerticalAlignment="Center"
  22. HorizontalAlignment="Center">
  23. <Label
  24. Content="Логин:"
  25. HorizontalAlignment="Left"
  26. VerticalAlignment="Top"
  27. Height="40"
  28. Width="240"/>
  29. <TextBox
  30. Name="logbox"
  31. HorizontalAlignment="Left"
  32. TextWrapping="Wrap"
  33. VerticalAlignment="Top"
  34. Height="40"
  35. Width="240"/>
  36. <Label
  37. Content="Пароль:"
  38. HorizontalAlignment="Left"
  39. VerticalAlignment="Top"
  40. Height="40"
  41. Width="240"/>
  42. <PasswordBox
  43. Name="passbox"
  44. HorizontalAlignment="Left"
  45. VerticalAlignment="Top"
  46. Height="40"
  47. Width="240"/>
  48. </StackPanel>
  49. <StackPanel
  50. Orientation="Horizontal"
  51. Grid.Row="1"
  52. HorizontalAlignment="Center"
  53. VerticalAlignment="Center">
  54. <Button
  55. x:Name="RegButton"
  56. Content="Регистрация"
  57. Height="40"
  58. Width="150"
  59. Margin="0,0,30,0"
  60. Click="RegButton_Click"/>
  61. <Button
  62. x:Name="LogButton"
  63. Content="Вход"
  64. Height="40"
  65. Width="150"
  66. Click="LogButton_Click"/>
  67. </StackPanel>
  68. </Grid>
  69. </Window>