我想在从其他屏幕添加新数据后刷新搜索屏幕.我试过了
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