C# Prism.AppModel中的IAutoInitialize接口出现问题,导致弹出窗口没有文本

C# Prism.AppModel中的IAutoInitialize接口出现问题,导致弹出窗口没有文本,c#,android,xamarin.forms,popup,prism,C#,Android,Xamarin.forms,Popup,Prism,我确实在我的项目中使用了Prism.Forms nuget包。 今天我更新了软件包,出现了以下错误: 错误CS0246无法指定类型或命名空间名称“IAutoInitialize” 找到(是否缺少using指令或程序集引用?) 然后,在从视图模型中删除IAutoInitialize继承后,我尝试运行该应用程序,发现我的自定义弹出窗口中没有更多的文本显示。(我检查了ShowDialog()调用,是的,我正在将文本传递给对话框页面构造函数) 以下是我的视图模型代码,其中出现了IAutoInitial

我确实在我的项目中使用了Prism.Forms nuget包。

今天我更新了软件包,出现了以下错误:

错误CS0246无法指定类型或命名空间名称“IAutoInitialize” 找到(是否缺少using指令或程序集引用?)

然后,在从视图模型中删除IAutoInitialize继承后,我尝试运行该应用程序,发现我的自定义弹出窗口中没有更多的文本显示。(我检查了ShowDialog()调用,是的,我正在将文本传递给对话框页面构造函数)

以下是我的视图模型代码,其中出现了IAutoInitialize问题:

public class CustomPopupViewModel : BindableBase, IDialogAware, IAutoInitialize
{
    public event Action<IDialogParameters> RequestClose;
    public DelegateCommand CancelCommand { get; set; }
    public DelegateCommand ConfirmCommand { get; set; }

    private string _Title;
    public string Title
    {
        get { return _Title; }
        set { SetProperty(ref _Title, value); }
    }

    private string _Message;
    public string Message
    {
        get { return _Message; }
        set { SetProperty(ref _Message, value); }
    }

    private string _CancelMsg;
    public string CancelMsg
    {
        get { return _CancelMsg; }
        set { SetProperty(ref _CancelMsg, value); }
    }

    private string _ConfirmMsg;
    public string ConfirmMsg
    {
        get { return _ConfirmMsg; }
        set { SetProperty(ref _ConfirmMsg, value); }
    }

    public CustomPopupViewModel()
    {
        CancelCommand = new DelegateCommand(CancelTapped);
        ConfirmCommand = new DelegateCommand(ConfirmTapped);
    }

    private void ConfirmTapped()
    {
        RequestClose(new DialogParameters { { typeof(bool).Name, true } });
    }

    private void CancelTapped()
    {
        RequestClose(new DialogParameters { { typeof(bool).Name, false } });
    }

    public bool CanCloseDialog() => true;

    public void OnDialogClosed() { }

    public void OnDialogOpened(IDialogParameters parameters) { }
}
公共类CustomPopupViewModel:BindableBase、IDialogAware、IAutoInitialize
{
公共事件行动请求关闭;
公共DelegateCommand取消命令{get;set;}
公共DelegateCommand ConfirmCommand{get;set;}
私有字符串\u标题;
公共字符串标题
{
获取{return\u Title;}
集合{SetProperty(ref _Title,value);}
}
私有字符串消息;
公共字符串消息
{
获取{return\u Message;}
set{SetProperty(ref_Message,value);}
}
私有字符串_CancelMsg;
公共字符串取消消息
{
获取{return\u CancelMsg;}
set{SetProperty(ref _CancelMsg,value);}
}
私有字符串_confirmsg;
公共字符串确认消息
{
获取{return\u confirmsg;}
set{SetProperty(ref _confirmsg,value);}
}
公共CustomPopupViewModel()
{
CancelCommand=新的DelegateCommand(CancelTapped);
ConfirmCommand=新的DelegateCommand(ConfirmTapped);
}
私有无效确认文件()
{
RequestClose(新对话框参数{{typeof(bool).Name,true});
}
私有void()
{
RequestClose(新对话框参数{{typeof(bool).Name,false});
}
公共bool CanCloseDialog()=>true;
公共无效OnDialogClosed(){}
公共void OnDialogOpened(IDialogParameters参数){}
}
我认为删除IAutoInitialize接口是导致弹出窗口中没有显示文本的原因。
我的问题是,在8.0.0.1909版本更新后,IAutoInitialize位于何处,或者如何解决此问题。

根据发行说明,IAutoInitialize从8.0.0.1909版本(2020年10月21日)起被删除:


“删除的IAutoInitialize-推荐迁移使用赞助商连接上的Prism.Magictor”

根据发行说明,IAutoInitialize从1909年8.0.0版(2020年10月21日)起被删除:

“已删除IAutoInitialize-建议迁移在赞助商连接上使用Prism.魔术师”