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.
 
 
 

39 lines
1.1 KiB

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