也许你的其他组合框看起来很丑,因为找不到MahApps资源?
将您正在使用的mahapp资源放在App.xaml文件的资源字典中,以便所有窗口都可以访问它。 (而不是将它们放置在一个资源字典中只有一个窗口,即mainwindow.xaml。)
的App.xaml:
<Application... >
<Application.Resources>
<ResourceDictionary>
<!-- My other resources -->
<!-- ... -->
<!-- MahApps resources -->
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
你可以尝试其他属性网格:https://github.com/SoftFluent/SoftFluent.Windows(免责声明:我写了它,它是免费的&开源的)也许他们与mahapps没有太多的努力集成。 –
因此,丑陋的东西有点儿主观,但一个快速的建议是,mahapps可以结合材料设计来创建一些非常棒的开箱即用用户体验(包括网格):http://materialdesigninxaml.net –