gpt4 book ai didi

xaml - WinRT 中的全局调度程序?

转载 作者:行者123 更新时间:2023-12-02 13:23:09 25 4
gpt4 key购买 nike

我有一些 WP7 代码,如下所示:



using System.Windows;
using System.Windows.Threading;

public static class GlobalDispatcher
{
public static Dispatcher Current { get { return Deployment.Current.Dispatcher; } }
}

WinRT 中的等效项是什么?是否没有全局可访问的 Dispatcher(或 CoreDispatcher)对象?

最佳答案

您将需要使用Window.Current.Dispatcher

关于xaml - WinRT 中的全局调度程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13482205/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com