-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
62 lines (59 loc) · 2.68 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
<Window x:Class="Split_Schnitzel.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:Split_Schnitzel"
xmlns:hc="https://handyorg.github.io/handycontrol"
mc:Ignorable="d"
Background="#111111"
Loaded="OnWindowLoad"
Closing="OnWindowClosing"
Deactivated="OnWindowDeactivated"
Activated="OnWindowActivated"
SizeChanged="RecalculatePositions"
StateChanged="OnWindowStateChanged"
Title="Split Schnitzel" Height="720" Width="1280">
<Grid Name="MainGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Name="LeftSplit" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Name="RightSplit" />
</Grid.ColumnDefinitions>
<!-- Left Area -->
<hc:DashedBorder Grid.Column="0" Name="LeftPanel" BorderThickness="2" BorderBrush="DimGray" BorderDashArray="3, 1">
<Button Width="Auto"
Height="Auto"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Click="OnWindowAssignLeft"
Background="Transparent"
BorderBrush="Transparent"
hc:IconElement.Geometry="{StaticResource AddGeometry}">
Enter window picking mode
</Button>
</hc:DashedBorder>
<GridSplitter Grid.Column="1"
HorizontalAlignment="Center"
VerticalAlignment="Stretch"
Background="#000"
ShowsPreview="False"
Width="2"
Name="GridSplitter"
DragCompleted="RecalculatePositions"
DragStarted="GridSplitterDragStarted"/>
<!-- Right Area -->
<hc:DashedBorder Grid.Column="2" Name="RightPanel" BorderThickness="2" BorderBrush="DimGray" BorderDashArray="3, 1">
<Button Width="Auto"
Height="Auto"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Click="OnWindowAssignRight"
Background="Transparent"
BorderBrush="Transparent"
hc:IconElement.Geometry="{StaticResource AddGeometry}">
Enter window picking mode
</Button>
</hc:DashedBorder>
</Grid>
</Window>