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 40 days ago on 10/08/2024. What links here