开发环境:VS2019
在跨平台上安装Plugin.Toast……
OK后如下
然后在事件中引入如下代码(根据需要更改即可)
ToastLength toastLength = ToastLength.Short;
void Short_Clicked(object sender, EventArgs e)
{
CrossToastPopUp.Current.ShowToastSuccess("Success", toastLength);
}