-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFiltersWindow.axaml
More file actions
87 lines (87 loc) · 4 KB
/
FiltersWindow.axaml
File metadata and controls
87 lines (87 loc) · 4 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
<Window xmlns="https://github.com/avaloniaui"
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"
Icon="/Assets/WS_logo.ico"
mc:Ignorable="d"
Width="300"
CanResize="False"
Topmost="True"
SizeToContent="Height"
x:Class="WindowSwitcher.Windows.FiltersWindow"
Title="Filters">
<TabControl Name="FiltersTabControl"
FontSize="13"
Padding="0">
<TabControl.Styles>
<Style Selector="TabItem">
<Setter Property="FontSize" Value="13" />
<Setter Property="MinHeight" Value="30" />
<Setter Property="Padding" Value="10,0" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
</TabControl.Styles>
<TabItem Header="Prefixes">
<Grid Margin="8, 0, 8, 8"
RowDefinitions="Auto,*"
RowSpacing="2">
<Grid ColumnDefinitions="*,Auto"
ColumnSpacing="6">
<TextBox Name="WhitelistTextBox"
Grid.Column="0"
HorizontalAlignment="Stretch"
KeyDown="WhitelistTextBoxKeyDown" />
<Button Name="WhitelistButton"
Grid.Column="1"
Content="Add"
Click="AddWhitelistClick" />
</Grid>
<StackPanel Grid.Row="1" Orientation="Vertical" Margin="0 8 0 0" Spacing="0">
<ListBox Name="WhitelistListBox"
Grid.Row="1"
SelectionChanged="WhitelistListBoxSelectionChanged">
<ListBox.Styles>
<Style Selector="ListBoxItem">
<Setter Property="Height" Value="22" />
<Setter Property="FontSize" Value="14" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Padding" Value="8, 2" />
</Style>
</ListBox.Styles>
</ListBox>
</StackPanel>
</Grid>
</TabItem>
<TabItem Header="Blacklist">
<Grid Margin="8, 0, 8, 8"
RowDefinitions="Auto,*"
RowSpacing="2">
<Grid ColumnDefinitions="*,Auto"
ColumnSpacing="6">
<TextBox Name="BlacklistTextBox"
Grid.Column="0"
HorizontalAlignment="Stretch"
KeyDown="BlacklistTextBoxKeyDown" />
<Button Name="BlacklistButton"
Grid.Column="1"
Content="Add"
Click="AddBlacklistClick" />
</Grid>
<StackPanel Grid.Row="1" Orientation="Vertical" Margin="0 8 0 0" Spacing="0">
<ListBox Name="BlacklistListBox"
Grid.Row="1"
SelectionChanged="BlacklistListBoxSelectionChanged">
<ListBox.Styles>
<Style Selector="ListBoxItem">
<Setter Property="Height" Value="22" />
<Setter Property="FontSize" Value="14" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Padding" Value="8, 2" />
</Style>
</ListBox.Styles>
</ListBox>
</StackPanel>
</Grid>
</TabItem>
</TabControl>
</Window>