-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
181 lines (150 loc) · 7.83 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
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
<Window x:Class="Scene_Maker.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:viewModel="clr-namespace:Scene_Maker.MVVM.ViewModel"
xmlns:local="clr-namespace:Scene_Maker"
mc:Ignorable="d"
Title="MainWindow" Height="600" Width="920"
Background="Transparent"
AllowsTransparency="True"
ResizeMode="NoResize"
WindowStyle="None">
<Window.DataContext>
<viewModel:MainViewModel/>
</Window.DataContext>
<Border Background="{StaticResource SM_PanelBackground}"
CornerRadius="10">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<!-- // Side Panel // -->
<StackPanel Grid.Row="1">
<TextBlock Text="Scene Maker"
VerticalAlignment="Center"
HorizontalAlignment="Stretch"
Padding="10,10,10,12"
Foreground="White"
FontSize="22"
FontFamily="/Fonts/#Poppins"
FontWeight="Medium"
MouseDown="windowBorderMouseDown"/>
<RadioButton Content="Scene Settings"
Height="50"
Foreground="White"
FontSize="14"
IsChecked="True"
Style="{StaticResource MenuButtonTheme}"
Command="{Binding SceneSettingsCommand}"/>
<RadioButton Content="Routines"
Height="50"
Foreground="White"
FontSize="14"
Style="{StaticResource MenuButtonTheme}"
Command="{Binding AllRoutinesCommand}"
/>
<RadioButton Content="Creation"
Height="50"
Foreground="White"
FontSize="14"
Style="{StaticResource MenuButtonTheme}"
Command="{Binding SceneCreationCommand}"/>
</StackPanel>
<!-- // Bottom Side Panel // -->
<ContentControl Grid.Row="1"
VerticalAlignment="Bottom"
Content="{Binding CurrentViewOptions}"/>
<!-- // Right Content Window // -->
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- // Top System Bar // -->
<Border Grid.Row="0"
HorizontalAlignment="Stretch"
CornerRadius="8,0,0,8"
Background="{DynamicResource SM_ButtonBG_Selected}">
<Grid Grid.Row="0"
HorizontalAlignment="Stretch">
<TextBlock Background="Transparent" HorizontalAlignment="Stretch" MouseDown="windowBorderMouseDown"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ContentControl Grid.Column="0"
HorizontalAlignment="Left"
Content="{Binding InnerNavView}"/>
<!-- // System Menu // -->
<Menu Grid.Column="1"
Background="Transparent">
<Menu.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</Menu.ItemsPanel>
<!-- // Menu - File // -->
<MenuItem Header="File"
Template="{StaticResource SystemMenuSubMenu_Template}"
Margin="0,0,0,4">
<MenuItem Header="New Scene"
Template="{StaticResource SystemMenuItem_Template}">
<MenuItem.Icon>
<Image Source="Assets/btn_NewTheme.png"
Stretch="Uniform" Opacity="0.5" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Open Scene"
Template="{StaticResource SystemMenuItem_Template}">
<MenuItem.Icon>
<Image Source="Assets/btn_OpenTheme.png"
Stretch="Uniform" Opacity="0.5" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Close Scene"
Template="{StaticResource SystemMenuItem_Template}">
<MenuItem.Icon>
<Image Source="Assets/btn_CloseTheme.png"
Stretch="Uniform" Opacity="0.5" />
</MenuItem.Icon>
</MenuItem>
</MenuItem>
</Menu>
<!-- // Window Buttons // -->
<StackPanel Grid.Column="2"
Orientation="Horizontal"
HorizontalAlignment="Right"
VerticalAlignment="Top">
<Button Grid.Column="1"
Grid.Row="0"
Style="{StaticResource SystemMenuButtonTheme}"
Content="-"
Click="minimizeButtonClick" HorizontalAlignment="Stretch"
/>
<Button Grid.Column="1"
Grid.Row="0"
Style="{StaticResource SystemMenuButtonTheme}"
Content="□"
Click="maximizeButtonClick"
/>
<Button Grid.Column="1"
Grid.Row="0"
Style="{StaticResource SystemExitButtonTheme}"
Content="x"
Click="closeButtonClick"
/>
</StackPanel>
</Grid>
</Grid>
</Border>
<ContentControl Grid.Row="2"
Content="{Binding CurrentView}"/>
</Grid>
</Grid>
</Border>
</Window>