public override void Execute(object parameter) { if (enterUrlDialog == null) { enterUrlDialog = new EnterUrlDialog(null); enterUrlDialog.UrlChosen += (o, e) => { addGeoRssLayer(e); return; }; enterUrlDialog.CancelButtonClicked += (o, e) => { MapApplication.Current.HideWindow(enterUrlDialog); }; } WindowType windowType = MapApplication.Current.IsEditMode ? WindowType.DesignTimeFloating : WindowType.Floating; MapApplication.Current.ShowWindow(LocalizableStrings.AddGeoRSSTitle, enterUrlDialog, false, null, null, windowType); }