using Avalonia.Controls.Platform; using Tizen.NUI.BaseComponents; namespace Avalonia.Tizen; /// /// Tizen Nui native view handle for native view attachment /// public class NuiViewControlHandle : INativeControlHostDestroyableControlHandle { internal const string ViewDescriptor = "NuiView"; /// /// Create handle with native view /// /// NUI Tizen native view to attach public NuiViewControlHandle(View view) { View = view; } /// /// NUI Tizen View /// public View View { get; set; } /// /// NUI Tizen not supporting handle /// /// public IntPtr Handle => throw new NotSupportedException(); /// /// Return `ViewDescriptor` all the time /// public string? HandleDescriptor => ViewDescriptor; /// /// Dispose Tizen View when it call /// public void Destroy() => View.Dispose(); }