[英]How to apply the theme to Extended WPF Toolkit?
I use the Expression Dark Theme in my WPF application. 我在WPF应用程序中使用Expression Dark Theme 。
Also I have to use Extended WPF Toolkit Controls . 此外,我必须使用扩展WPF工具包控件 。
How I can apply this theme to them? 我如何将这个主题应用于他们?
XAML: XAML:
<Application x:Uid="Application_1" x:Class="Mega.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml"
SessionEnding="App_SessionEnding" >
<Application.Resources>
<ResourceDictionary x:Uid="ResourceDictionary_1" >
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary x:Uid="ResourceDictionary_3" Source="/Themes/ExpressionDark.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
您应该从扩展工具包为每个自定义控件创建自己的样式,因为标准主题支持.NET Framework中的控件,如按钮textBox等,查看主题的xaml代码并以相同的方式创建您的样式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.