public override void Execute(object parameter) { if (_mapBehaviorsList == null) { _mapBehaviorsList = new MapBehaviorsList() { Margin = new Thickness(10, 15, 10, 5) }; } _mapBehaviorsList.IsEdit = IsEdit; WindowType windowType = MapApplication.Current.IsEditMode ? WindowType.DesignTimeFloating : WindowType.Floating; MapApplication.Current.ShowWindow(LocalizableStrings.GetString("MapBehaviors"), _mapBehaviorsList, false, null, (sender, e) => { _mapBehaviorsList = null; }, windowType); }
public override void Execute(object parameter) { if (_mapBehaviorsList == null) { _mapBehaviorsList = new MapBehaviorsList() { Margin = new Thickness(10, 15, 10, 5) }; } _mapBehaviorsList.IsEdit = IsEdit; WindowType windowType = MapApplication.Current.IsEditMode ? WindowType.DesignTimeFloating : WindowType.Floating; MapApplication.Current.ShowWindow(LocalizableStrings.GetString("MapBehaviors"), _mapBehaviorsList, false, null, (sender, e) => { _mapBehaviorsList = null; }, windowType); }