StylesInModel
(Replacing message template with parser tag)
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/


To get the StylesInModel styles applied to your WPF application go like this to merge the ResourceDictionary:
To get the StylesInModel styles applied to your WPF application go like this to merge the ResourceDictionary:
Line 11: Line 10:
[[Category:WebUI]]
[[Category:WebUI]]
[[Category:WPF]]
[[Category:WPF]]
See also [[Documentation:Theme as data]]
{{Edited|July|12|2024}}
{{Edited|July|12|2024}}

Latest revision as of 08:16, 15 August 2024

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);
}

See also Documentation:Theme as data


This page was edited 36 days ago on 08/15/2024. What links here