StylesInModel
No edit summary
(Automatically adding template at the end of the page.)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The introducing 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:
var stylesinmodelRD = StylesInModelWPF.GenerateResourceDictionaryFromStylesInModel(ViewModelDefinitionsInApplication.GetActionsRuntime(_es.GetType()), wecpof);
if (stylesinmodelRD != null)
{
  wecpof.Resources.MergedDictionaries.Add(stylesinmodelRD);
}
[[Category:WebUI]]
[[Category:WebUI]]
[[Category:WPF]]
[[Category:WPF]]
{{Edited|July|12|2024}}

Latest revision as of 15:47, 10 February 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);
}
This page was edited 95 days ago on 02/10/2024. What links here