wpf theme changed my aligmnent
I applied BureauBlue.xaml theme to my application and it wreck my all alignment. Is there any solution to apply theme without destroying my alignment???
Place your theme in "Themes" Folder.
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>
I just removed starting bracket of my code because it does not shows my code.
去App.xaml并粘贴那里的线,你会使用Vista的主题非常接近Windows7,进度条,复选框,菜单,定量按钮,滚动条等,但你不会有玻璃看。
<Application.Resources>
<ResourceDictionary Source="/PresentationFramework.Aero, Version=3.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35,
ProcessorArchitecture=MSIL;component/themes/aero.normalcolor.xaml" />
</Application.Resources>
链接地址: http://www.djcxy.com/p/34484.html
下一篇: wpf主题改变了我的想法