下面是测试窗口的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构建该项目。
发布于 2013-03-14 21:43:23
我们在GitHub论坛上讨论了这一点:
https://github.com/MahApps/MahApps.Metro/issues/383
您可以更新到预发布项目,直到我为另一个发布腾出时间。
安装-Package MahApps.Metro -Pre
https://stackoverflow.com/questions/15390133
复制相似问题