forked from lepoco/wpfui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml
38 lines (33 loc) · 1.63 KB
/
App.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
<Application
x:Class="Wpf.Ui.Demo.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
DispatcherUnhandledException="OnDispatcherUnhandledException"
Exit="OnExit"
Startup="OnStartup">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:ControlsDictionary />
<ui:ThemesDictionary Theme="Dark" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
<!--
Alternatives
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:Resources Theme="Dark" />
<ResourceDictionary Source="pack://application:,,,/Wpf.Ui;component/Styles/Theme/Dark.xaml" />
<ResourceDictionary Source="pack://application:,,,/Wpf.Ui;component/Styles/Wpf.Ui.xaml" />
</ResourceDictionary.MergedDictionaries>
Here is an example of manually assigning the Segoe Fluent Icons font. It's dynamically caught by the library, so it should work fine.
Remember to do this assignment AFTER the WPFUI styles are loaded, otherwise the library will try to load the system font.
<FontFamily x:Key="SegoeFluentIcons">pack://application:,,,/;component/Fonts/#Segoe Fluent Icons</FontFamily>
Here is an example of manually changing only one color
<SolidColorBrush x:Key="UiBrushHyperlink" Color="#FFBBB711" />
</ResourceDictionary>
</Application.Resources>-->