WpfOfficeTheme Save

Project README

Wpf Office Theme

WPF theme influenced by minimalistic MS Office style

####List of supported controls

  • Button
  • CheckBox
  • ComboBox
  • Expander
  • GroupBox
  • Label
  • ListBox
  • ListView
  • Menu
  • RadioButton
  • ScrollViewer
  • TabControl
  • TextBox
  • ToggleButton
  • TreeView
  • DataGrid

####How to use that theme in your application Download the project. Copy Themes folder to your project. Then you need to reference the styles in your App.xaml file. Open App.xaml and update it like following:

                <ResourceDictionary Source="/Themes/Styles/Generic.xaml"/>
            <SolidColorBrush x:Key="AccentColorBrush" Color="#007ACC" />

The accent color is defined dynamically. So, you need to add the code which generates the palette colors. Override the OnApplyTemplate( ) method in your main window class like following:

public override void OnApplyTemplate()
    var accentBrush = TryFindResource("AccentColorBrush") as SolidColorBrush;
    if (accentBrush != null) accentBrush.Color.CreateAccentColors();

That's it.

####How to change the accent color Replace the accent color with the color you prefer in App.xaml

<SolidColorBrush x:Key="AccentColorBrush" Color="RoyalBlue" />


I hope you find it useful. Feel free to contact me for any questions you may have.

Open Source Agenda is not affiliated with "WpfOfficeTheme" Project. README Source: TanyaPristupova/WpfOfficeTheme
Open Issues
Last Commit
7 years ago

Open Source Agenda Badge

Open Source Agenda Rating