如何使用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 –