https://github.com/adn-devtech/maya-net-wpf-darkscheme
Maya .Net Dark Scheme for WPF
https://github.com/adn-devtech/maya-net-wpf-darkscheme
Last synced: 5 months ago
JSON representation
Maya .Net Dark Scheme for WPF
- Host: GitHub
- URL: https://github.com/adn-devtech/maya-net-wpf-darkscheme
- Owner: ADN-DevTech
- Created: 2014-01-19T08:32:02.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2021-11-17T09:00:15.000Z (over 4 years ago)
- Last Synced: 2025-08-31T11:37:26.489Z (7 months ago)
- Language: C#
- Homepage: http://around-the-corner.typepad.com/
- Size: 281 KB
- Stars: 21
- Watchers: 37
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Dark theme for Maya WPF plug-in
Back to 2014, Cyrille wrote a [blog](https://around-the-corner.typepad.com/adn/2014/01/applying-the-maya-dark-color-scheme-to-wpf.html) about using XAML dictionary resouce to apply a dark theme for Maya WPF plug-in. In previous blog, it will create an application to load the theme. If more than one WPF plugin using the theme is loaded, it will cause an exception as only a single Application can exist within each AppDomain.
Although we can't use previous method to load the theme, the theme resource is still good for applying theme. We can use another method to load it without creating an application. It needs a little bit more extra work to setup than before:
1. Copy and add the Resources and Themes folder into your project. Please add the converters.cs to your project also.
2. Change all the files' Build Action file properties inside the Resources folder to Resources
3. Modify line 192 inside Themes/Skins/QadskDarkStyle.xaml, change **wpfexamples** to your assembly's name
````
````
Now, the setup is finished. If you want your window to use the dark theme provided with the resource dictionary, you'll need to include them inside your WPF window's XAML.
e.g.
````
````
Then, you can set the windows's style to MayaStyle like below
````
````
Now, your WPF window will be using the Dark theme. Enjoy!