【发布时间】:2009-10-12 09:38:53
【问题描述】:
我将 BureauBlue.xaml 主题应用到我的应用程序中,但它破坏了我的所有对齐方式。有什么解决方案可以应用主题而不破坏我的对齐方式???
将您的主题放在“主题”文件夹中。
应用程序
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="WpfApplication4.App"
StartupUri="MainWindow.xaml">
应用程序.资源>
资源词典>
ResourceDictionary.MergedDictionaries>
ResourceDictionary Source="Themes/BureauBlue.xaml"/>
/ResourceDictionary.MergedDictionaries>
/资源字典>
/应用程序.资源>
/应用>
我刚刚删除了我的代码的起始括号,因为它没有显示我的代码。
【问题讨论】: