public override void Execute(object parameter) { if (control == null) { control = new LayerConfigurationDialog() { View = View.Instance }; } ESRI.ArcGIS.Client.Extensibility.MapApplication.Current.ShowWindow(Resources.Strings.ConfigureSelectedLayer, control, false, null, (o, e) => { if (control != null) control.View = null; control = null; });//Disassociate View from the control so that there is no overhead on every selected layer change //when config control react to the change. }
public override void Execute(object parameter) { if (control == null) { control = new LayerConfigurationDialog() { View = View.Instance }; } ESRI.ArcGIS.Client.Extensibility.MapApplication.Current.ShowWindow(Resources.Strings.ConfigureSelectedLayer, control, false, null, (o, e) => { if (control != null) { control.View = null; } control = null; }); //Disassociate View from the control so that there is no overhead on every selected layer change //when config control react to the change. }