【MAUI】为什么照着 MSDN 写自定义控件缺失 API?
https://docs.microsoft.com/zh-cn/dotnet/maui/user-interface/handlers/customize
背景
本来想好好地研究一下 MAUI 来着,结果遇到了API缺失的问题,结果发现是自己的 MAUI 版本太新了,API 发生了一些变动,更新内容见 https://gitee.com/fanbal/maui/commit/3717ce0d385d1aadbd3b9795c203d438426aae17 ,比如下方的NativeView
变成了PlatformView
,还比如EntryMapper
,现在就简化成Mapper
了。
没有及时更新的 MSDN 老示例
namespace MauiApp1
{
public partial class App : Application
{
public App()
{
InitializeComponent();
Microsoft.Maui.Handlers