我的 xaml 中有一个按钮单击事件,该事件触发:
private void Button_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e){
StoryBoardName.begin()
}
我很好奇我是否应该像这样包装这个“StoryBoardName.begin():
var dispatcher = Windows.UI.Core.CoreWindow.GetForCurrentThread().Dispatcher;
dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>{
StoryBoardName.Begin();
});
或者如果那只是多余的?
谢谢!