StylesInModel
(Adding message template to the top of the page) |
(Replacing message template with parser tag) |
||
Line 1: | Line 1: | ||
<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/ | ||
Revision as of 07:57, 17 June 2024
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/
To get the StylesInModel styles applied to your WPF application go like this to merge the ResourceDictionary:
var stylesinmodelRD = StylesInModelWPF.GenerateResourceDictionaryFromStylesInModel(ViewModelDefinitionsInApplication.GetActionsRuntime(_es.GetType()), wecpof); if (stylesinmodelRD != null) { wecpof.Resources.MergedDictionaries.Add(stylesinmodelRD); }