【发布时间】:2019-08-06 19:26:27
【问题描述】:
我正在将代码库从 MVVMLight 重写为 Prism。我有一个 IDispatchOnUIThread 接口,我正在 iOS 中实现。
什么是 Prism 中 MVVMLight 的 DispatchHelper 等价物?
using MyApp.Model;
using GalaSoft.MvvmLight.Threading;
using System;
namespace MyApp.iOS
{
public class DispatchOnUIThread : IDispatchOnUIThread
{
public void Invoke(Action action)
{
DispatcherHelper.CheckBeginInvokeOnUI(action);
}
}
}
【问题讨论】:
标签: xamarin.forms prism mvvm-light