-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainWindow.xaml
56 lines (55 loc) · 2.05 KB
/
MainWindow.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
<Window x:Class="SimpleDesktopShell.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"
mc:Ignorable="d"
Title="Simple Desktop Shell"
WindowStyle="None"
WindowState="Maximized"
ResizeMode="NoResize"
ShowInTaskbar="False"
Closing="Window_Closing">
<Grid>
<Grid.Resources>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily" Value="Organetto Regular" />
</Style>
</Grid.Resources>
<Grid.Background>
<ImageBrush ImageSource="/Images/cover_x4.jpg" Stretch="UniformToFill" />
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="50" MaxHeight="50" MinHeight="50" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="0" Grid.Column="1"
Orientation="Horizontal" FlowDirection="RightToLeft"
HorizontalAlignment="Right" VerticalAlignment="Top"
Margin="5" >
<StackPanel.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="Margin" Value="0,0,5,0" />
<Setter Property="Width" Value="30" />
<Setter Property="Height" Value="30" />
<Setter Property="BorderBrush" Value="#3F707070" />
<Setter Property="Background" Value="#55DDDDDD" />
<Setter Property="Foreground" Value="AliceBlue" />
</Style>
</StackPanel.Resources>
<Button x:Name="CloseButton" Content="✖️" Click="CloseButton_Click" />
<Button x:Name="SettingsButton" Content="⚙" />
<Button x:Name="CleanButton" Content="🧹" />
</StackPanel>
<TextBlock Grid.Row="0" Grid.Column="0"
Text="Главная" FontSize="22" Foreground="AliceBlue"
VerticalAlignment="Center" HorizontalAlignment="Left"
Margin="50,0,0,0" />
<Grid Grid.Row="1" Grid.ColumnSpan="2">
</Grid>
</Grid>
</Window>