MainWindow.xaml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <Window x:Class="Esoft.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:Esoft"
  7. mc:Ignorable="d"
  8. AllowsTransparency="True"
  9. Background="Transparent"
  10. WindowStyle="None"
  11. WindowStartupLocation="CenterScreen"
  12. Height="680" Width="1100"
  13. ResizeMode="NoResize"
  14. MouseDown="Window_MouseDown">
  15. <Grid>
  16. <Border Background="#e6f4ff" CornerRadius="20"/>
  17. <Grid>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="280"/>
  20. <ColumnDefinition Width="*"/>
  21. </Grid.ColumnDefinitions>
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="50"/>
  24. <RowDefinition Height="*"/>
  25. </Grid.RowDefinitions>
  26. <Button x:Name="btnClose" Style="{DynamicResource PanelButtonX}" Margin="0,10,10,0" Grid.Row="0" Grid.Column="1" Height="35" Width="35" Click="btnClose_Click">
  27. </Button>
  28. <Button x:Name="btnMinimize" Style="{DynamicResource PanelButtonMin}" Margin="0,10,55,0" Grid.Row="0" Grid.Column="1" Height="35" Width="35" Click="btnMinimize_Click">
  29. </Button>
  30. <Frame Name="MainFrame" NavigationUIVisibility="Hidden" Grid.Column="1" Grid.Row="1"/>
  31. </Grid>
  32. <!--Панель навигации-->
  33. <Grid HorizontalAlignment="Left" Width="280">
  34. <Border Background="#4285B4" CornerRadius="20,0,0,20" HorizontalAlignment="Left" Width="304"/>
  35. <Image Source="/Resources/logo.png" VerticalAlignment="Top" Margin="30,15"/>
  36. <StackPanel Width="280" Height="400" Margin="0,20,0,0">
  37. <Button Name="General" Style="{DynamicResource NaviButtons}" Click="General_Click">
  38. <Grid Width="280">
  39. <Image Source="/Resources/GeneralHome.png" Style="{StaticResource ImageStyle}"/>
  40. <TextBlock Text="Главная" Style="{StaticResource Text_Style}" FontFamily="Arial Black" Margin="60,0,0,0"/>
  41. </Grid>
  42. </Button>
  43. <Separator Height="3" Background="Transparent" RenderTransformOrigin="0.5,0.5">
  44. <Separator.RenderTransform>
  45. <TransformGroup>
  46. <ScaleTransform ScaleY="-1"/>
  47. <SkewTransform/>
  48. <RotateTransform/>
  49. <TranslateTransform/>
  50. </TransformGroup>
  51. </Separator.RenderTransform>
  52. </Separator>
  53. <Button Name="TaskList" Style="{DynamicResource NaviButtons}" Click="TaskList_Click">
  54. <Grid Width="280">
  55. <TextBlock Text="Задачи" Style="{StaticResource Text_Style}" FontFamily="Arial Black"/>
  56. <Image Source="/Resources/TaskList.png" Style="{StaticResource ImageStyle}"/>
  57. </Grid>
  58. </Button>
  59. <Separator Height="3" Background="Transparent" RenderTransformOrigin="0.5,0.5">
  60. <Separator.RenderTransform>
  61. <TransformGroup>
  62. <ScaleTransform ScaleY="-1"/>
  63. <SkewTransform/>
  64. <RotateTransform/>
  65. <TranslateTransform/>
  66. </TransformGroup>
  67. </Separator.RenderTransform>
  68. </Separator>
  69. <Button Name="ExecutorList" Style="{DynamicResource NaviButtons}" Click="ExecutorList_Click">
  70. <Grid Width="280">
  71. <TextBlock Text="Исполнители" Style="{StaticResource Text_Style}" FontFamily="Arial Black"/>
  72. <Image Source="/Resources/EmployeeList.png" Style="{StaticResource ImageStyle}"/>
  73. </Grid>
  74. </Button>
  75. <Separator Height="5" Background="Transparent" RenderTransformOrigin="0.5,0.5">
  76. <Separator.RenderTransform>
  77. <TransformGroup>
  78. <ScaleTransform ScaleY="-1"/>
  79. <SkewTransform/>
  80. <RotateTransform/>
  81. <TranslateTransform/>
  82. </TransformGroup>
  83. </Separator.RenderTransform>
  84. </Separator>
  85. <Button Name="Chart" Style="{DynamicResource NaviButtons}" Click="Chart_Click">
  86. <Grid Width="280">
  87. <Grid.ColumnDefinitions>
  88. <ColumnDefinition Width="13*"/>
  89. <ColumnDefinition Width="27*"/>
  90. </Grid.ColumnDefinitions>
  91. <TextBlock Text="Графики" Style="{StaticResource Text_Style}" FontFamily="Arial Black" Grid.ColumnSpan="2" Margin="60,0,0,0"/>
  92. <Image Source="/Resources/Chart.png" Style="{StaticResource ImageStyle}"/>
  93. </Grid>
  94. </Button>
  95. <Separator Height="1" Background="Transparent" RenderTransformOrigin="0.5,0.5">
  96. <Separator.RenderTransform>
  97. <TransformGroup>
  98. <ScaleTransform ScaleY="-1"/>
  99. <SkewTransform/>
  100. <RotateTransform/>
  101. <TranslateTransform/>
  102. </TransformGroup>
  103. </Separator.RenderTransform>
  104. </Separator>
  105. </StackPanel>
  106. <StackPanel VerticalAlignment="Bottom" Height="3" Width="250" Margin="0,0,0,100" Background="#2e5d85"/>
  107. <Button Name="AccExit" Style="{DynamicResource NaviButtons}" VerticalAlignment="Bottom" Margin="0,0,0,15" Click="AccExit_Click">
  108. <Grid Width="280">
  109. <TextBlock Text="Выход" Style="{StaticResource Text_Style}" FontFamily="Arial Black"/>
  110. <Image Source="/Resources/AccExit.png" Style="{StaticResource ImageStyle}"/>
  111. </Grid>
  112. </Button>
  113. </Grid>
  114. </Grid>
  115. </Window>