-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
186 lines (134 loc) · 8.95 KB
/
Copy pathMainWindow.xaml
File metadata and controls
186 lines (134 loc) · 8.95 KB
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<Window x:Class="WPFUIKitProfessional.MainWindow"
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:WPFUIKitProfessional"
mc:Ignorable="d" x:Name="home"
Title="BIBON" Height="720" Width="1100"
MouseLeftButtonDown="Window_MouseLeftButtonDown"
WindowStartupLocation="CenterScreen" WindowStyle="None"
Background="Transparent" AllowsTransparency="True"
ResizeMode="NoResize" WindowState="Normal" FontFamily="Poppins">
<Window.Resources>
<Style TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border BorderThickness="3" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="{TemplateBinding Background}" CornerRadius="6" BorderBrush="#FFFFFF">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation To="210" Storyboard.TargetProperty="Width" Duration="0:0:0.3" />
<DoubleAnimation To="230" Storyboard.TargetProperty="Height" Duration="0:0:0.3" />
<ColorAnimation To="Coral" Storyboard.TargetProperty="Background.(SolidColorBrush.Color)" Duration="0:0:0.3"/>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
<Trigger.ExitActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation To="200" Storyboard.TargetProperty="Width" Duration="0:0:0.3" />
<DoubleAnimation To="220" Storyboard.TargetProperty="Height" Duration="0:0:0.3" />
<ColorAnimation To="White" Storyboard.TargetProperty="Background.(SolidColorBrush.Color)" Duration="0:0:0.3"/>
</Storyboard>
</BeginStoryboard>
</Trigger.ExitActions>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Border CornerRadius="10" Background="{DynamicResource PrimaryBackgroundColor}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="179*"/>
</Grid.RowDefinitions>
<!-- Start: GridColumn Left -->
<Border CornerRadius="10 10 10 10"
Padding="10"
Background="{DynamicResource SecundaryBackgroundColor}" Margin="10,6,10,0" Grid.Row="1" VerticalAlignment="Top">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" Margin="20,0,0,0">
<Image Source="/Assets/ic_near.png" Width="40" />
<Label Content="BIBON V" Margin="10,0,0,0" FontSize="20" FontWeight="Bold" Foreground="{DynamicResource PrimaryTextColor}" VerticalAlignment="Center"/>
</StackPanel>
<StackPanel x:Name="gridMenu" Orientation="Horizontal" Grid.Column="1">
<RadioButton x:Name="rdHome" Content="Home" Style="{DynamicResource MenuRadioButtonStyle}" Click="rdHome_Click" />
<Border Background="{DynamicResource TertiaryBackgroundColor}" Width="1" Grid.Column="1" Margin="10,5,10,5" />
<RadioButton x:Name="rdAnalytics" Content="Store" Style="{DynamicResource MenuRadioButtonStyle}" Click="rdAnalytics_Click"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="2" HorizontalAlignment="Right" Margin="0,0,5,0">
<Border CornerRadius="18" Width="110" Height="35" Background="{DynamicResource TertiaryBackgroundColor}" Margin="0,0,20,0">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Path Data="{DynamicResource sun}" Height="16" Width="16" Stretch="UniformToFill" Fill="{DynamicResource PrimaryYellowColor}" VerticalAlignment="Center"/>
<ToggleButton x:Name="Themes"
IsChecked="False"
Click="Themes_Click"
HorizontalAlignment="Right"
Style="{DynamicResource ToggleButtonStyle}"
Margin="10 0 10 0"/>
<Path Data="{DynamicResource moon}" Height="16" Width="16" Stretch="Fill" Fill="{DynamicResource PrimaryWhiteColor}" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Button x:Name="btnMinimize" Style="{DynamicResource IconButtonsStyle}" Content="{DynamicResource minimize}" Click="btnMinimize_Click"/>
<Button x:Name="btnRestore" Margin="5 0" Click="btnRestore_Click">
<Button.Style>
<Style TargetType="{x:Type Button}" BasedOn="{StaticResource IconButtonsStyle}">
<Setter Property="Content" Value="{DynamicResource maximize}"/>
<Style.Triggers>
<DataTrigger Binding="{Binding ElementName=home, Path=WindowState}" Value="Maximized">
<Setter Property="Content" Value="{DynamicResource restore}"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
<Button Style="{StaticResource IconButtonsStyle}" Content="{DynamicResource close}" Click="btnClose_Click" Tag="IsCloseButton"/>
</StackPanel>
</Grid>
</Border>
<!-- End: GridColumn Left -->
<Grid Grid.RowSpan="2">
<Grid.RowDefinitions>
<RowDefinition Height="83"/>
<RowDefinition/>
</Grid.RowDefinitions>
<!-- Start: Button Close | Restore | Minimize -->
<!-- End: Button Close | Restore | Minimize -->
<!-- Start: Frame Container -->
<Border Grid.Row="1" CornerRadius="0 0 5 0" Background="Transparent" Margin="0,10,0,0">
<Grid Grid.Row="1">
<!-- Кнопка -->
<!-- Кнопка -->
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<!-- Лейбл -->
<Label x:Name="welcomeLabel" FontSize="36" FontFamily="Segoe Script" Foreground="White" Content="Welcome to BIBON" HorizontalAlignment="Center" Margin="0,0,0,20" />
<Button x:Name="actionButton" Height="220" Width="200" FontWeight="Bold"
Foreground="MediumPurple" Click="Button_Click_13">
<Button.Background>
<ImageBrush ImageSource="/Assets/ic_near.png" Stretch="UniformToFill"/>
</Button.Background>
</Button>
<Label Foreground="#FF898989" HorizontalAlignment="Center" Margin="0,20,0,0">BIBON V</Label>
</StackPanel>
<Frame x:Name="frameContent" NavigationUIVisibility="Hidden" Margin="10,0,10,10" Navigated="FrameContent_Navigated"/>
</Grid>
</Border>
<!-- End: Frame Container -->
</Grid>
</Grid>
</Border>
</Window>