-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
135 lines (132 loc) · 6.14 KB
/
MainWindow.xaml
File metadata and controls
135 lines (132 loc) · 6.14 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
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
<Window x:Class="WindowThumbWall.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WindowThumbWall"
Icon="Assets/app-icon.ico"
Width="1200"
Height="800"
WindowStartupLocation="CenterScreen"
Background="#1E1E1E">
<Grid x:Name="RootGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="LeftColumnDefinition" Width="260"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- Left panel: window picker -->
<Grid Grid.Column="0" x:Name="LeftPanel" Margin="6">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0"
x:Name="FilterLabel"
Foreground="#E6E6E6" Margin="0,0,0,4" FontSize="13"/>
<TextBox Grid.Row="1"
x:Name="FilterBox"
Margin="0,0,0,6"/>
<Grid Grid.Row="2">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="4"/>
<RowDefinition x:Name="AppListRowDefinition" Height="180"/>
</Grid.RowDefinitions>
<ListBox Grid.Row="0"
x:Name="WindowList"
Background="#2D2D2D" Foreground="White"
BorderThickness="0"
FontWeight="Normal">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="FontStyle" Value="Normal"/>
</Style>
</ListBox.ItemContainerStyle>
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Title}"
FontWeight="Normal"
FontStyle="Normal"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<GridSplitter Grid.Row="1"
Height="4"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
ResizeDirection="Rows"
ResizeBehavior="PreviousAndNext"
Background="#444"/>
<Grid Grid.Row="2">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0"
x:Name="AppListLabel"
Foreground="#E6E6E6" Margin="0,6,0,4" FontSize="13"/>
<ListBox Grid.Row="1"
x:Name="AppList"
AllowDrop="True"
Background="#2D2D2D" Foreground="White"
FontWeight="Normal"
BorderThickness="0">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="FontStyle" Value="Normal"/>
</Style>
</ListBox.ItemContainerStyle>
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding DisplayName}"
FontWeight="Normal"
FontStyle="Normal"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</Grid>
<Button Grid.Row="3"
x:Name="FullScreenButton"
Click="FullScreenButton_Click"
Background="#444" Foreground="White" BorderThickness="0"
Padding="8,6" Margin="0,6,0,0" FontSize="13" Cursor="Hand"/>
<Button Grid.Row="4"
x:Name="SettingsButton"
Click="SettingsButton_Click"
Background="#444" Foreground="White" BorderThickness="0"
Padding="8,6" Margin="0,6,0,0" FontSize="13" Cursor="Hand"/>
<Button Grid.Row="5"
x:Name="ShortcutGuideButton"
Click="ShortcutGuideButton_Click"
Background="#2D2D2D"
Foreground="#E6E6E6"
BorderBrush="#4A4A4A"
BorderThickness="1"
Padding="8,6"
Margin="0,6,0,0"
FontSize="11"
FontWeight="Normal"
FontStyle="Normal"
HorizontalContentAlignment="Left"
Cursor="Hand">
<Button.ContentTemplate>
<DataTemplate>
<TextBlock Text="{Binding}"
TextWrapping="Wrap"/>
</DataTemplate>
</Button.ContentTemplate>
</Button>
</Grid>
<GridSplitter Grid.Column="1" x:Name="Splitter" Width="4"
HorizontalAlignment="Center" VerticalAlignment="Stretch"
Background="#444"/>
<!-- Right panel: flexible thumbnail grid (rows/cols managed in code-behind) -->
<Grid Grid.Column="2" x:Name="ThumbGrid" Margin="4"/>
</Grid>
</Window>