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), Func<your_resource_dictionary>);

Code Block
languagec#
        public MyDeviceUi()
       
{
    
       XamlInitializer.Initialize(this,
      
                                typeof(my_resource_dictionary),
       
                               () => new my_resource_dictionary());
     
  }

      

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