我只是使用这段代码
<Button Content="hi"
Style="{StaticResource AccentedSquareButtonStyle}"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Width="223" Margin="0,316,0,0" Height="39"/>
在xml中:
<controls:MetroWindow x:Class="Launcher.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="Launcher"
Height="455.745"
Width="690.319"
ResizeMode="CanMinimize"
WindowStartupLocation="CenterScreen"
GlowBrush="{DynamicResource AccentColorBrush}">
但是当我点击它时这个按钮的颜色错误