XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
UTF-8
using Microsoft.UI.Dispatching;

namespace SpaceEngineersBlueprintEditor.ViewModels;

public abstract class AsyncViewModelBase(DispatcherQueue dispatcherQueue) : ViewModelBase
{
    protected DispatcherQueue _dispatcherQueue = dispatcherQueue;
    protected void OnPropertyChangedAsync(string? propertyName = null) => _dispatcherQueue.TryEnqueue(() => OnPropertyChanged(propertyName));
}