Skip to content

Commit

Permalink
chore: CustomFontSymbols test
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Nov 19, 2024
1 parent e2e720d commit a5522a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/Wpf.Ui.Test/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,17 @@
Orientation="Horizontal"
Spacing="8">
<Button Command="{Binding ShowReportCommand}" Content="Show Report" />
<Button Command="{Binding ThrowExceptionCommand}" Content="Throw Exception" />
<Button Command="{Binding ThrowExceptionCommand}">
<Button.Content>
<ui:StackPanel Orientation="Horizontal" Spacing="4">
<ui:FontIcon
FontFamily="{DynamicResource CustomSymbolThemeFontFamily}"
FontSize="16"
Glyph="{x:Static ui:CustomFontSymbols.Extension}" />
<TextBlock Text="Throw Exception" />
</ui:StackPanel>
</Button.Content>
</Button>
</ui:StackPanel>
</StackPanel>
</StackPanel>
Expand Down
2 changes: 1 addition & 1 deletion src/Wpf.Ui.Violeta/Resources/Wpf.Ui.xaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<FontFamily x:Key="SymbolThemeFontFamily">pack://application:,,,/Wpf.Ui.Violeta;component/Resources/Fonts/Segoe Fluent Icons.ttf#Segoe Fluent Icons</FontFamily>
<FontFamily x:Key="SymbolVioletaThemeFontFamily">pack://application:,,,/Wpf.Ui.Violeta;component/Resources/Fonts/Violeta Fluent Icons.ttf#Violeta Fluent Icons</FontFamily>
<FontFamily x:Key="CustomSymbolThemeFontFamily">pack://application:,,,/Wpf.Ui.Violeta;component/Resources/Fonts/Violeta Fluent Icons.ttf#Violeta Fluent Icons</FontFamily>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Wpf.Ui.Violeta;component/Resources/Variables.xaml" />
<ResourceDictionary Source="pack://application:,,,/Wpf.Ui.Violeta;component/Controls/MessageBox/MessageBoxDialog.xaml" />
Expand Down

0 comments on commit a5522a8

Please sign in to comment.