-
Notifications
You must be signed in to change notification settings - Fork 1
/
MainWindow.xaml
53 lines (52 loc) · 1.72 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
<Window x:Class="AzurLaneWikiScraperWPF.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:AzurLaneWikiScraperWPF"
xmlns:view="clr-namespace:AzurLaneWikiScraperWPF.View"
xmlns:viewmodel="clr-namespace:AzurLaneWikiScraperWPF.ViewModel"
d:DataContext="{d:DesignInstance Type=viewmodel:MainViewModel}"
mc:Ignorable="d"
Background="#01000000"
WindowStyle="None"
Title="Azur Lane Gallery"
Height="450"
Width="600"
MinHeight="380"
MinWidth="380"
WindowStartupLocation="CenterScreen"
AllowsTransparency="True">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/View/GlobalResourceDictionary.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="0"
ResizeBorderThickness="5"/>
</WindowChrome.WindowChrome>
<Border Padding="0,10,0,0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<view:NavBar Grid.Column="0"
MouseDown="TopBar_MouseDown" />
<view:TopBar Grid.Column="1"
MouseDown="TopBar_MouseDown" />
</Grid>
<ContentControl Grid.Row="1"
Margin="0,10,0,0"
Content="{Binding NavBar.CurrentPage}" />
</Grid>
</Border>
</Window>