-
Notifications
You must be signed in to change notification settings - Fork 0
/
ForClientWindow.xaml
167 lines (150 loc) · 9.18 KB
/
ForClientWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<Window x:Class="Фотостудия.ForClientWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Фотостудия"
mc:Ignorable="d"
Title="Frame By Frame" Height="450" Width="800" WindowState="Maximized" Icon="AppImgs/Лого.png" KeyDown="keydown">
<Window.Resources>
<Style x:Key="FocusVisual">
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate>
<Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<SolidColorBrush x:Key="RadioButton.MouseOver.Glyph" Color="#FF212121"/>
<Style x:Key="rbMenu" TargetType="{x:Type RadioButton}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RadioButton}">
<Grid x:Name="templateRoot" Background="Transparent" SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ContentPresenter x:Name="contentPresenter" Grid.Column="1" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter Property="Background" TargetName="templateRoot" Value="#e8e8e8"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.18*"/>
<RowDefinition Height="0.7*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.20*"/>
<ColumnDefinition Width="0.75*"/>
</Grid.ColumnDefinitions>
<Viewbox Grid.ColumnSpan="2" HorizontalAlignment="Left">
<!--Шапка-->
<StackPanel Background="#e8f7fa">
<!--#e6faff-->
<DockPanel Height="106">
<StackPanel Orientation="Horizontal">
<Image Source="AppImgs/Лого.png" Width="160" Margin="20, 10, 18 , 10"/>
<Border Height="50" Width="1" BorderBrush="Black" BorderThickness="1"/>
<TextBlock FontWeight="Bold" FontFamily="MS Reference Sans Serif" Text="Frame by Frame" FontSize="40" VerticalAlignment="Center" Margin="30, 0"/>
</StackPanel>
<StackPanel VerticalAlignment="Center" Width="410">
<Menu Background="Transparent" HorizontalAlignment="Right">
<MenuItem Width="70">
<MenuItem.Header>
<Image Source="AppImgs/user.png" HorizontalAlignment="Right" Width="60" Margin="5"/>
</MenuItem.Header>
<StackPanel Orientation="Horizontal">
<Image Source="AppImgs/Out.png" Width="15"/>
<Button Content="Выйти" Click="Out_Click" Margin="20, 0 ,0 ,0 " Background="Transparent" BorderBrush="Transparent"/>
</StackPanel>
</MenuItem>
</Menu>
</StackPanel>
</DockPanel>
</StackPanel>
</Viewbox>
<!--Меню-->
<StackPanel Grid.Row="1" Background="#b0aeae" >
<Viewbox VerticalAlignment="Top" Margin="15">
<!--<StackPanel Background="#f5f5f5" Height="660"> -->
<Border Height="625" Background="White" CornerRadius="25">
<StackPanel Margin="0, 30, 0, 0" >
<RadioButton x:Name="rb1Menu" HorizontalAlignment="Left" Style="{DynamicResource rbMenu}" Checked="rbHomeChecked">
<StackPanel Orientation="Horizontal" Height="60" HorizontalAlignment="Left" VerticalAlignment="Center">
<Image Source="AppImgs/главная.png" Style="{StaticResource imgMenu}"/>
<TextBlock Text=" Главная" Style="{StaticResource tblMenu}"/>
</StackPanel>
<RadioButton.ToolTip>
<ToolTip>
Главная</ToolTip>
</RadioButton.ToolTip>
</RadioButton>
<RadioButton x:Name="rb2Menu" HorizontalAlignment="Left" Style="{DynamicResource rbMenu}" Checked="rbZakazyChecked">
<StackPanel Orientation="Horizontal" Height="60" HorizontalAlignment="Left" VerticalAlignment="Center">
<Image Source="AppImgs/doc.png" Style="{StaticResource imgMenu}"/>
<TextBlock Text="Мои заявки" Style="{StaticResource tblMenu}"/>
</StackPanel>
<RadioButton.ToolTip>
<ToolTip>
Мои заявки за все время
</ToolTip>
</RadioButton.ToolTip>
</RadioButton>
<RadioButton x:Name="rb3Menu" HorizontalAlignment="Left" Style="{DynamicResource rbMenu}" Checked="rbPhotogChecked">
<StackPanel Orientation="Horizontal" Height="60" HorizontalAlignment="Left" VerticalAlignment="Center">
<Image Source="AppImgs/photog.png" Style="{StaticResource imgMenu}"/>
<TextBlock Text="Фотографы" Style="{StaticResource tblMenu}"/>
</StackPanel>
<RadioButton.ToolTip>
<ToolTip>
Фотографы
</ToolTip>
</RadioButton.ToolTip>
</RadioButton>
<RadioButton x:Name="rb4Menu" HorizontalAlignment="Left" Style="{DynamicResource rbMenu}" Checked="rbVidUlsugChecked">
<StackPanel Orientation="Horizontal" Height="60" HorizontalAlignment="Left" VerticalAlignment="Center">
<Image Source="AppImgs/pricelist.png" Style="{StaticResource imgMenu}"/>
<TextBlock Text="Прайс-лист" Style="{StaticResource tblMenu}"/>
</StackPanel>
<RadioButton.ToolTip>
<ToolTip>
Прайс-лист
</ToolTip>
</RadioButton.ToolTip>
</RadioButton>
<RadioButton x:Name="rb5Menu" HorizontalAlignment="Left" Style="{DynamicResource rbMenu}" Checked="rbLocationsChecked">
<StackPanel Orientation="Horizontal" Height="60" HorizontalAlignment="Left" VerticalAlignment="Center">
<Image Source="AppImgs/compass.png" Style="{StaticResource imgMenu}"/>
<TextBlock Text="Локации" Style="{StaticResource tblMenu}"/>
</StackPanel>
<RadioButton.ToolTip>
<ToolTip>
Локации
</ToolTip>
</RadioButton.ToolTip>
</RadioButton>
</StackPanel>
<!--</StackPanel>-->
</Border>
</Viewbox>
</StackPanel>
<StackPanel Grid.Row="1" Grid.Column="1" Background="#b0aeae">
<Viewbox VerticalAlignment="Top">
<Border Height="563" Background="White" CornerRadius="25" Margin="5, 15, 15, 15">
<!--Контент-->
<Frame Name="frame1" NavigationUIVisibility="Hidden" Width="1140"/>
</Border>
</Viewbox>
</StackPanel>
</Grid>
</Window>