Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TanyaPristupova/WpfOfficeTheme
https://github.com/TanyaPristupova/WpfOfficeTheme
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/TanyaPristupova/WpfOfficeTheme
- Owner: TanyaPristupova
- Created: 2016-03-22T08:22:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-06T16:32:06.000Z (over 8 years ago)
- Last Synced: 2024-06-16T01:31:39.499Z (5 months ago)
- Language: C#
- Size: 287 KB
- Stars: 127
- Watchers: 6
- Forks: 31
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-wpf - Wpf Office Theme - (FREE, OPEN SOURCE) WPF theme influenced by minimalistic MS Office style. (Themes / Individual Controls)
README
# Wpf Office Theme
### WPF theme influenced by minimalistic MS Office style
![](Screenshot1.png)
####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:
```
```
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()
{
base.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
``````
###FeedbackI hope you find it useful. Feel free to contact me for any questions you may have.