-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
63 lines (63 loc) · 3.08 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
57
58
59
60
61
62
63
<Window x:Class="XPhotos.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:XPhotos"
mc:Ignorable="d"
Title="XPhotos" Height="600" Width="900"
WindowStartupLocation="CenterScreen"
Style="{StaticResource XPhotosWindow}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="700*"/>
<ColumnDefinition Width="200*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="40*"/>
<RowDefinition Height="550*"/>
</Grid.RowDefinitions>
<GridSplitter Grid.Row="0" Background="{x:Static local:ThemeManager.LighterSelectBrush}"
Grid.ColumnSpan="2" Height="1.5" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"/>
<GridSplitter Grid.RowSpan="2" VerticalAlignment="Stretch" Background="{x:Static local:ThemeManager.LighterSelectBrush}" Width="1.5"/>
<!--#region MainAreas-->
<TabControl Grid.Row="1" Name="prjView" DragDrop.Drop="ForcePrjOpen" AllowDrop="True"/>
<Border>
<Grid>
<StackPanel Orientation="Horizontal">
<MenuItem Click="ContextButton_Click" x:Name="FileButton">
<MenuItem.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="File"/>
</StackPanel>
</MenuItem.Header>
<MenuItem.ContextMenu>
<ContextMenu>
<MenuItem Header="Create"/>
<MenuItem Header="Open" Click="OpenBtn_Click"/>
<MenuItem Header="Export"/>
<MenuItem Header="Export to PNG"/>
<MenuItem Header="Save"/>
</ContextMenu>
</MenuItem.ContextMenu>
</MenuItem>
<MenuItem Click="ContextButton_Click" x:Name="EditButton">
<MenuItem.Header>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Edit"/>
</StackPanel>
</MenuItem.Header>
<MenuItem.ContextMenu>
<ContextMenu>
<MenuItem Header="Settings"/>
<MenuItem Header="Hue/Saturation"/>
<MenuItem Header="Lightness"/>
</ContextMenu>
</MenuItem.ContextMenu>
</MenuItem>
</StackPanel>
</Grid>
</Border>
<!--#endregion MainAreas-->
</Grid>
</Window>