如何使用MahApps.Metro来设置WPF扩展工具包的CheckComboBox风格?WPF与MahApps.Metro的CheckComboBox样式
我的App.xaml包含:
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
当我把CheckComboBox
的窗口,它看起来是这样的:
而且简单ComboBox
看起来是这样的:
所以样式是不同的。
出色答卷,+1,但请注意,你缺少'DisplayMemberPath'。查看我的2美分到您的答案:https://stackoverflow.com/a/45377886/628532 –