A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
433 B

using System;
using Avalonia.Controls.Platform;
using MonoMac.AppKit;
namespace IntegrationTestApp.Embedding;
internal class MacOSViewHandle(NSView view) : INativeControlHostDestroyableControlHandle
{
private NSView? _view = view;
public IntPtr Handle => _view?.Handle ?? IntPtr.Zero;
public string HandleDescriptor => "NSView";
public void Destroy()
{
_view?.Dispose();
_view = null;
}
}