这是测试窗口的XAML:
<controls:MetroWindow x:Class="MahGroupBoxTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
Title="MainWindow" Height="350" Width="525">
<controls:MetroWindow.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.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/Accents/Blue.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</controls:MetroWindow.Resources>
<Grid>
<GroupBox Header="Test GroupBox" ></GroupBox>
</Grid>
</controls:MetroWindow>
这是结果:
我期待在演示中使用样式GroupBox
。我已经看过项目中的问题,似乎没有人在此之前发现了这个问题。所以我认为问题可能在于我。有什么想法吗?
我正在使用.Net 4.0构建项目,MahApps版本为0.10.0.1。
答案 0 :(得分:1)
我们在GitHub论坛上讨论了这个问题:
https://github.com/MahApps/MahApps.Metro/issues/383
您可以更新到预发布项目,直到我为其他版本腾出时间。
Install-Package MahApps.Metro -Pre