public void Execute(object parameter) { var panel = DesktopPanelToolService.AddDesktopPanel(null, DockName.None); panel.ViewModel.Title = DesktopPanelToolService.GetNewPanelDefaultTitle(); panel.Show(); }
void OnDeserialized(StreamingContext context) { var widgets = new List <WidgetBaseViewModel>(WidgetsViewModels); WidgetsViewModels.Clear(); foreach (var widget in widgets) { AddWidget(widget.View); } DesktopPanelToolService.AddDesktopPanel( View, _dock, _dockScreen, _isPined, _isCollapsed ); }