StylesInModel
(Updated Edited template to July 12, 2025.) |
No edit summary |
||
Line 1: | Line 1: | ||
<message>Write the content here to display this box</message> | <message>Write the content here to display this box</message> | ||
The introduction article is found here: https://blog.mdriven.net/introducing-styles-in-model/ | The introduction article is found here: https://blog.mdriven.net/introducing-styles-in-model/ | ||
The article above describes this UI: | |||
[[File:Documentation StylesInModel 1748264775178.png|none|thumb|715x715px]] | |||
To get the <span class="col-blue-dark"><span class="col-black">'''StylesInModel'''</span></span> styles applied to your WPF application, do this to merge the ResourceDictionary: | To get the <span class="col-blue-dark"><span class="col-black">'''StylesInModel'''</span></span> styles applied to your WPF application, do this to merge the ResourceDictionary: |
Latest revision as of 13:06, 26 May 2025
This page was created by Hans.karlsen on 2020-03-23. Last edited by Hans.karlsen on 2025-05-26.
The introduction article is found here: https://blog.mdriven.net/introducing-styles-in-model/
The article above describes this UI:
To get the StylesInModel styles applied to your WPF application, do this to merge the ResourceDictionary:
var stylesinmodelRD = StylesInModelWPF.GenerateResourceDictionaryFromStylesInModel(ViewModelDefinitionsInApplication.GetActionsRuntime(_es.GetType()), wecpof); if (stylesinmodelRD != null) { wecpof.Resources.MergedDictionaries.Add(stylesinmodelRD); }
See also: Theme as data