小编Pim*_*ong的帖子

如何在lightswitch中刷新父屏幕?

我想在从其他屏幕添加新数据后刷新搜索屏幕.我试过了

foreach (var parentScreen in this.Application.ActiveScreens.OfType<ScreenType>())
{
     //Invoke the refresh
     parentScreen.Details.Dispatcher.BeginInvoke(() => parentScreen.Details.Commands.Refresh.Execute());
}
Run Code Online (Sandbox Code Playgroud)

但它似乎不适用于Beta 2

silverlight visual-studio-lightswitch

4
推荐指数
1
解决办法
6262
查看次数