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.

17 lines
422 B

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