MainWindow.xaml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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="PartsWarehouse"
  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="Collapsed"
  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" Height="20"
  44. Content="X"
  45. Background="Transparent"
  46. BorderThickness="0"
  47. Foreground="Gray"
  48. FontWeight="Bold"
  49. Click="CloseButton_Click"/>
  50. </StackPanel>
  51. </Grid>
  52. </Border>
  53. <Grid Grid.Row="1">
  54. <Grid.ColumnDefinitions>
  55. <ColumnDefinition Width="31*"/>
  56. <ColumnDefinition Width="169*"/>
  57. </Grid.ColumnDefinitions>
  58. <StackPanel Background="{StaticResource color2}"
  59. Grid.Column="0">
  60. <Button Height="30"
  61. Margin="5"
  62. Content="Создать тест"
  63. Click="CreateTestClick">
  64. </Button>
  65. <Button Height="30"
  66. Margin="5"
  67. Content="Тесты"
  68. Click="TestsCatalogClick">
  69. </Button>
  70. <Button Height="30"
  71. Margin="5"
  72. Content="Профиль"
  73. Click="ProfileClick">
  74. </Button>
  75. </StackPanel>
  76. <Frame Name="MainFrame"
  77. Grid.Column="1">
  78. </Frame>
  79. </Grid>
  80. </Grid>
  81. </Window>