MainWindow.xaml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. <StackPanel Orientation="Horizontal"
  23. Margin="10,0,0,0">
  24. <Image Width="17"
  25. Height="17"
  26. Source="Resources/Ico.png">
  27. </Image>
  28. <Label Content="Tests"
  29. Foreground="Gray"
  30. FontWeight="Bold"/>
  31. </StackPanel>
  32. <StackPanel HorizontalAlignment="Right"
  33. Orientation="Horizontal">
  34. <Button Width="20"
  35. Height="20"
  36. Content="—"
  37. Background="Transparent"
  38. BorderThickness="0"
  39. Foreground="Gray"
  40. FontWeight="Bold"
  41. Click="ButtonMininize_Click"/>
  42. <Button Visibility="Collapsed"
  43. Width="20" Height="20"
  44. Content="☐"
  45. Background="Transparent"
  46. BorderThickness="0"
  47. Foreground="Gray"
  48. FontWeight="Bold"
  49. Click="WindowStateButton_Click"/>
  50. <Button Width="20"
  51. Height="20"
  52. Content="X"
  53. Background="Transparent"
  54. BorderThickness="0"
  55. Foreground="Gray"
  56. FontWeight="Bold"
  57. Click="CloseButton_Click"/>
  58. </StackPanel>
  59. </Grid>
  60. </Border>
  61. <Frame Name="MainFrame"
  62. Grid.Row="1"
  63. NavigationUIVisibility="Hidden">
  64. </Frame>
  65. </Grid>
  66. </Window>