Switchlight V1.0 正式发布,配套控件相继发布,收集如下:
1、Devexpress LightSwitch Reporting
http://www.devexpress.com/Products/NET/Reporting/lightswitch.xml
2、 NetAdvantage for Microsoft's Visual Studio LightSwitch
http://www.infragistics.com/dotnet/netadvantage/lightswitch-controls.aspx#Overview
public void Refresh<T>(this IList<IActiveScreen> screenList) where T: IScreenObject
{
var screens = screenList.Where((x) => x.Screen is T);
foreach (var s in screens)
{
var screen = (T)s.Screen;
screen.Details.Dispatcher.BeginInvoke(() => <br/> {
screen.Refresh();
});
}
}
//this code goes in the code of the child screen
private void DetailScreen_Saved()
{
this.Refresh<ParentScreenType>;
}