[UWP]在PCL中使用Dispatcher [英] [UWP] Using Dispatcher in a PCL
本文介绍了[UWP]在PCL中使用Dispatcher的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在PCL中执行此操作?
How can I do this in a PCL ?
Protected Async Sub OnPropertyChanged(<CallerMemberName> Optional propertyName As String = Nothing)
Await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow. (CoreDispatcherPriority.High, (Sub()
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs(propertyName))
End Sub))
End Sub
推荐答案
你好,theresonlyonefinmaf,
Hi theresonlyonefinmaf,
你有一些特殊的要求使用PCL?您可以像在uwp项目中一样在
类库(通用Windows)中轻松使用API。
Do you have some speciafic requirements to use the PCL? You can use the APIs easily in the Class Library (Universal Windows) as in the uwp project.
祝你好运,
Breeze
这篇关于[UWP]在PCL中使用Dispatcher的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文