public void Destroy()
 {
     if (_impl != null)
     {
         _impl.DestroyDefaultChild(_nsView);
         _impl.Dispose();
         _impl   = null;
         _nsView = IntPtr.Zero;
     }
 }
 public DestroyableNSView(IAvnNativeControlHost impl)
 {
     _impl   = MicroComRuntime.CloneReference(impl);
     _nsView = _impl.CreateDefaultChild(IntPtr.Zero);
 }
 public NativeControlHostImpl(IAvnNativeControlHost host)
 {
     _host = host;
 }
 public void Dispose()
 {
     _host?.Dispose();
     _host = null;
 }
Exemple #5
0
 public DestroyableNSView(IAvnNativeControlHost impl)
 {
     _impl = new IAvnNativeControlHost(impl.NativePointer);
     _impl.AddRef();
     _nsView = _impl.CreateDefaultChild(IntPtr.Zero);
 }