我将BureauBlue.xaml主题应用到我的应用程序中,它破坏了我的所有对齐 . 是否有任何解决方案应用主题而不破坏我的对齐???
将您的主题放在“主题”文件夹中 .
application
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">
Application.Resources>
ResourceDictionary>
ResourceDictionary.MergedDictionaries>
ResourceDictionary Source="Themes/BureauBlue.xaml"/>
/ResourceDictionary.MergedDictionaries>
/ResourceDictionary>
/Application.Resources>
/Application>
我刚删除了代码的起始括号,因为它没有显示我的代码 .
1 回答
转到App.xaml并在那里粘贴线条,你将使用非常接近Windows7的Vista主题,进度条,复选框,菜单,定量按钮,滚动条等,但你不会有玻璃外观 .