-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeFont.xaml
More file actions
51 lines (46 loc) · 1.89 KB
/
Copy pathChangeFont.xaml
File metadata and controls
51 lines (46 loc) · 1.89 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
<Controls:MetroWindow x:Class="Notepad.ChangeFont"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
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:Notepad"
mc:Ignorable="d"
TitleCaps="False"
GlowBrush="red"
WindowStartupLocation="CenterScreen"
Title="Change Your Font" Height="300" Width="310">
<Grid>
<TextBlock
Margin="10 10 0 0"
FontWeight="DemiBold"
FontSize="14"
Text="{Binding TextFontWin, Mode=OneWay}"/>
<ComboBox x:Name="fontComboFast"
Width="220"
HorizontalAlignment="Center"
Height="25">
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel />
</ItemsPanelTemplate>
</ComboBox.ItemsPanel>
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}"
FontFamily="{Binding}"
FontSize="15"
Height="20" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<Button HorizontalAlignment="Center"
VerticalAlignment="Bottom"
Margin="0 0 0 30"
Width="80"
Name="changeFont"
Click="changeFont_Click"
Content="Ok">
</Button>
</Grid>
</Controls:MetroWindow>