【发布时间】:2021-04-04 17:05:00
【问题描述】:
我正在尝试在 xamarin 表单中使用消息中心而不是 Messenger 我不知道消息中心我尝试使用 Bellow 代码以 xamarin 表单订阅和发送消息
MessagingCenter.Send(this, "TodoTable", "Todo");
但我不知道从哪里可以订阅此消息,我尝试了以下代码:
MessagingCenter.Subscribe<TodoClass>(this, Todo, async (sender, arg) =>
{
await RefreshCommand.ExecuteAsync();
});
这给了我错误任何帮助将不胜感激:)
【问题讨论】:
-
以 xamarin 形式使用消息中心 youtube.com/watch?v=-0S5iznrPYc
标签: xamarin xamarin.forms