MainWindow.xaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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="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"
  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. <Frame Name="MainFrame"
  55. Grid.Row="1"
  56. NavigationUIVisibility="Hidden">
  57. </Frame>
  58. </Grid>
  59. </Window>