Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Typically your UI constructor uses the XamlInitializer.Initialize(this) call. Instead, use the overload with the following signature: XamlInitializer.Initialize(this, typeof(your_resource_dictionary)IEnumerable<(Type, Func<your_resource_dictionary>));

Code Block
languagec#
public MyDeviceUi()
{
  var  XamlInitializer.Initialize(this,
resourceDictionariesToRegister = new List<(Type, Func<ResourceDictionary>)>
  {
                           typeof(my_resource_dictionary(typeof(YourResourceDictionary), () => new YourResourceDictionary())
  };
                        () => new my_resource_dictionary()XamlInitializer.Initialize(this, resourceDictionariesToRegister);
}

public MyDeviceUi(MyDeviceConfiguration config, IDeviceUIParams deviceUIParams) : this()
{
    ...
}

...