-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
92 lines (81 loc) · 3.71 KB
/
MainWindow.xaml
File metadata and controls
92 lines (81 loc) · 3.71 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
<mah:MetroWindow xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
x:Class="Pandora.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:views="clr-namespace:Pandora.MVVM.Views"
mc:Ignorable="d"
ShowIconOnTitleBar="True"
WindowTitleBrush="#FF222C3F"
Background="#FF222C3F"
WindowStartupLocation="CenterScreen"
MinHeight="960"
MinWidth="1707"
DataContext="{Binding MainWindow, Source={StaticResource Locator}}">
<mah:MetroWindow.IconTemplate>
<DataTemplate>
<Image Source="/resources/drawable/logo.png"
Margin="40 5 15 5"/>
</DataTemplate>
</mah:MetroWindow.IconTemplate>
<mah:MetroWindow.TitleTemplate>
<DataTemplate>
<TextBlock Text="Pandora"
VerticalAlignment="Center"
FontSize="18"
FontFamily="Ubuntu Light"/>
</DataTemplate>
</mah:MetroWindow.TitleTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="500"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBox Style="{StaticResource SearchTextBox}"
Margin="20, 7.5, 20, 7.5"
Grid.Column="0"/>
<StackPanel Grid.Column="1"
HorizontalAlignment="Right"
Orientation="Horizontal">
<StackPanel Orientation="Horizontal">
<Button x:Name="AddButton"
Style="{StaticResource AddButtonKey}"
Click="AddButton_Click"
Content="Добавить модель в систему">
<Button.Resources>
<SolidColorBrush x:Key="Background" Color="Transparent"/>
<SolidColorBrush x:Key="Foreground" Color="White"/>
</Button.Resources>
</Button>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Button x:Name="PersonName"
Style="{StaticResource LoginButtonKey}"
Click="PersonName_Click">
<Button.Resources>
<SolidColorBrush x:Key="Background" Color="Transparent"/>
<SolidColorBrush x:Key="Foreground" Color="White"/>
</Button.Resources>
</Button>
</StackPanel>
</StackPanel>
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition x:Name="InfoColumn" Width="0"/>
</Grid.ColumnDefinitions>
<Frame x:Name="content" NavigationUIVisibility="Hidden"/>
<views:ItemInfo Grid.Column="2"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
Background="Transparent"/>
</Grid>
</Grid>
</mah:MetroWindow>