2012-11-13 78 views

回答

4

只放下面的資源字典在您的XAML

<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.Buttons.xaml" /> 
    <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.ComboBox.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> 

    <Style TargetType="ToggleButton" BasedOn="{StaticResource MetroToggleButton}" /> 
    <Style TargetType="ComboBox" BasedOn="{StaticResource MetroComboBox}" /> 
    <Style TargetType="ComboBoxItem" BasedOn="{StaticResource MetroComboBoxItem}" /> 
</ResourceDictionary> 

希望這有助於

+0

感謝名單這有助於!現在唯一的問題是,ToggleSwitches只有灰色。有什麼建議麼? –

+0

@ChrisjanL我忘了口音的顏色,這必須幫助 – punker76

+0

嗨我想知道是否有一種方法來改變標題欄的顏色時使用mahapps?它目前的淺藍色,但可以說我想它橙色? –