/// <summary> /// Instantiates an instance of <see cref="MyCustomControl"/> /// </summary> public MyCustomControl() { this.DefaultStyleKey = typeof(MyCustomControl); //Ensure the native bits are deployed correctly MyControlsNative.Class1 instance = new MyControlsNative.Class1(); var result = instance.Test(); if (result != 1) throw new Exception("Something is wrong with the native resource"); }
/// <summary> /// Instantiates an instance of <see cref="MyCustomControl"/> /// </summary> public MyCustomControl() { this.DefaultStyleKey = typeof(MyCustomControl); //Ensure the native bits are deployed correctly MyControlsNative.Class1 instance = new MyControlsNative.Class1(); var result = instance.Test(); if (result != 1) { throw new Exception("Something is wrong with the native resource"); } }