MainWindow.xaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <Window x:Class="MyTests.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:MyTests"
  7. mc:Ignorable="d"
  8. WindowStartupLocation="CenterScreen"
  9. WindowStyle="None"
  10. ResizeMode="NoResize"
  11. Height="450"
  12. Width="800">
  13. <Grid Background="{StaticResource color1}">
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="25"/>
  16. <RowDefinition/>
  17. </Grid.RowDefinitions>
  18. <Border Background="#252525"
  19. MouseDown="Border_MouseDown"
  20. Grid.Row="0">
  21. <Grid HorizontalAlignment="Stretch">
  22. <Label Content="MyTests"
  23. Foreground="Gray"
  24. FontWeight="SemiBold"/>
  25. <StackPanel HorizontalAlignment="Right"
  26. Orientation="Horizontal">
  27. <Button Width="20"
  28. Height="20"
  29. Content="—"
  30. Background="Transparent"
  31. BorderThickness="0"
  32. Foreground="Gray"
  33. FontWeight="Bold"
  34. Click="ButtonMininize_Click"/>
  35. <Button Visibility="Visible"
  36. Width="20" Height="20"
  37. Content="☐"
  38. Background="Transparent"
  39. BorderThickness="0"
  40. Foreground="Gray"
  41. FontWeight="Bold"
  42. Click="WindowStateButton_Click"/>
  43. <Button Width="20"
  44. Height="20"
  45. Content="X"
  46. Background="Transparent"
  47. BorderThickness="0"
  48. Foreground="Gray"
  49. FontWeight="Bold"
  50. Click="CloseButton_Click"/>
  51. </StackPanel>
  52. </Grid>
  53. </Border>
  54. <Grid Grid.Row="1">
  55. <Grid.ColumnDefinitions>
  56. <ColumnDefinition Width="124"/>
  57. <ColumnDefinition/>
  58. </Grid.ColumnDefinitions>
  59. <StackPanel Background="{StaticResource color2}"
  60. Grid.Column="0">
  61. <Button Height="30"
  62. Margin="5"
  63. Content="Создать тест"
  64. Click="CreateTestClick">
  65. </Button>
  66. <Button Height="30"
  67. Margin="5"
  68. Content="Тесты"
  69. Click="TestsCatalogClick">
  70. </Button>
  71. <Button Height="30"
  72. Margin="5"
  73. Content="Профиль"
  74. Click="ProfileClick">
  75. </Button>
  76. </StackPanel>
  77. <Frame Name="MainFrame"
  78. Grid.Column="1"
  79. NavigationUIVisibility="Hidden">
  80. </Frame>
  81. </Grid>
  82. </Grid>
  83. </Window>