MainWindow.xaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <Window x:Class="RaspisKusach.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:RaspisKusach"
  7. mc:Ignorable="d"
  8. Title="Расписание"
  9. WindowStartupLocation="CenterScreen"
  10. WindowStyle="None"
  11. ResizeMode="NoResize"
  12. Height="450"
  13. Width="800">
  14. <Grid>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="25"/>
  17. <RowDefinition/>
  18. </Grid.RowDefinitions>
  19. <Border Name="Bar"
  20. Background="#252525"
  21. Grid.Row="0"
  22. MouseDown="Border_MouseDown">
  23. <Grid HorizontalAlignment="Stretch" Background="WhiteSmoke">
  24. <StackPanel Orientation="Horizontal">
  25. <Image Source="/Resources/Train.png"
  26. Margin="5,0,0,0"
  27. Height="{Binding Path=ActualHeight, ElementName=Bar}"/>
  28. <Label Content="Поездочка"
  29. Foreground="Gray"
  30. FontWeight="SemiBold"/>
  31. </StackPanel>
  32. <StackPanel HorizontalAlignment="Right"
  33. Orientation="Horizontal">
  34. <Button Style="{x:Null}"
  35. Width="20"
  36. Height="20"
  37. Content="—"
  38. Background="Transparent"
  39. BorderThickness="0"
  40. Foreground="Gray"
  41. FontWeight="Bold"
  42. Click="ButtonMininize_Click"/>
  43. <Button Visibility="Collapsed"
  44. Style="{x:Null}"
  45. Width="20" Height="20"
  46. Content="☐"
  47. Background="Transparent"
  48. BorderThickness="0"
  49. Foreground="Gray"
  50. FontWeight="Bold"
  51. Click="WindowStateButton_Click"/>
  52. <Button Style="{x:Null}"
  53. Width="20" Height="20"
  54. Content="X"
  55. Background="Transparent"
  56. BorderThickness="0"
  57. Foreground="Gray"
  58. FontWeight="Bold"
  59. Click="CloseButton_Click"/>
  60. </StackPanel>
  61. </Grid>
  62. </Border>
  63. <Frame Name="MainFrame"
  64. Grid.Row="1"
  65. NavigationUIVisibility="Hidden" >
  66. </Frame>
  67. </Grid>
  68. </Window>