StylesInModel

The introduction article is found here: https://blog.mdriven.net/introducing-styles-in-model/

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


This page was edited 26 days ago on 12/04/2024. What links here