-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFontChooser.xaml
46 lines (42 loc) · 2.02 KB
/
FontChooser.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
<Window x:Class="SubtitlesRunner.FontChooser"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="FontChooser" Height="300" Width="300">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
<ColumnDefinition Width="12" />
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="12" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!-- Families -->
<Label Grid.Column="0" Grid.Row="0" Content="_Font family" />
<DockPanel Grid.Column="0" Grid.Row="1" Grid.RowSpan="3">
<TextBox DockPanel.Dock="Top" Name="fontFamilyTextBox" />
<ListBox Name="fontFamilyList" />
</DockPanel>
<!-- Family Typefaces (weight, style, stretch) -->
<Label Grid.Column="2" Grid.Row="0" Grid.ColumnSpan="3" Content="_Typeface:" />
<ListBox Grid.Column="2" Grid.Row="1" Grid.ColumnSpan="3" Name="typefaceList" />
<!-- Font sizes -->
<Label Grid.Column="2" Grid.Row="2" Margin="0,12,0,0" Content="_Size:" />
<DockPanel Grid.Column="2" Grid.Row="3">
<TextBox DockPanel.Dock="Top" Name="sizeTextBox" />
<ListBox Height="60" Name="sizeList" />
</DockPanel>
<!-- Text decorations -->
<DockPanel Grid.Column="4" Grid.Row="3">
<CheckBox DockPanel.Dock="Top" Content="Underline" Name="underlineCheckBox" />
<CheckBox DockPanel.Dock="Top" Content="Baseline" Name="baselineCheckBox" />
<CheckBox DockPanel.Dock="Top" Content="Strikethrough" Name="strikethroughCheckBox" />
<CheckBox Content="Overline" Name="overlineCheckBox" />
</DockPanel>
</Grid>
</Window>