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.

20 lines
461 B

using Avalonia.Controls;
using Avalonia.Platform;
using System;
namespace JiLinApp.Components;
public class NativeHost : NativeControlHost
{
public IntPtr Handle { get; set; }
public NativeHost() : base()
{ }
protected override IPlatformHandle CreateNativeControlCore(IPlatformHandle parent)
{
IPlatformHandle? pfHandle = base.CreateNativeControlCore(parent);
Handle = pfHandle.Handle;
return pfHandle;
}
}