protected override void LoadCore() { base.LoadCore(); if (stylePropertyUI == null) { stylePropertyUI = new StylePropertyUI(); } if (stylePropertyViewModel == null) { stylePropertyViewModel = new StylePropertyViewModel(); } if (stylePropertyDockWindow == null) { stylePropertyDockWindow = new DockWindow(); stylePropertyDockWindow.Content = stylePropertyUI; stylePropertyDockWindow.Content.DataContext = stylePropertyViewModel; stylePropertyDockWindow.Name = "StyleProperties"; stylePropertyDockWindow.Title = "Style Properties"; stylePropertyDockWindow.Position = DockWindowPosition.Right; stylePropertyDockWindow.StartupMode = DockWindowStartupMode.Hide; } if (!DockWindows.Contains(stylePropertyDockWindow)) { DockWindows.Add(stylePropertyDockWindow); } GisEditor.LayerListManager.SelectedLayerListItemChanged -= LayerListManager_SelectedLayerListItemChanged; GisEditor.LayerListManager.SelectedLayerListItemChanged += LayerListManager_SelectedLayerListItemChanged; }
protected override void LoadCore() { base.LoadCore(); loggerWatchUserControl = new LoggerWatchUserControl(); loggerWatchUserControl.DataContext = loggerWatchViewModel; DockWindows.Add(new DockWindow(loggerWatchUserControl, DockWindowPosition.Bottom, "Logger Watch")); }
/// <summary> /// Opens the dock window with specific position. /// </summary> /// <param name="dockWindow">The dock window.</param> /// <param name="dockWindowPosition">The dock window position.</param> protected virtual void OpenDockWindowCore(DockWindow dockWindow, DockWindowPosition dockWindowPosition) { if (!DockWindows.Contains(dockWindow)) { DockWindows.Add(dockWindow); } OnDockWindowOpened(new DockWindowOpenedDockWindowManagerEventArgs(dockWindow, dockWindowPosition)); }
protected override void UnloadCore() { base.UnloadCore(); if (bookmarkGroup != null) { bookmarkGroup.UnRegisterMessenger(); } RibbonEntries.Clear(); DockWindows.Clear(); }
protected override void LoadCore() { base.LoadCore(); bookmarkGroup.RegisterMessenger(viewModel); if (!RibbonEntries.Contains(bookmarkEntry)) { RibbonEntries.Add(bookmarkEntry); } if (!DockWindows.Contains(bookMarkDockWindow)) { DockWindows.Add(bookMarkDockWindow); } }
protected override void LoadCore() { base.LoadCore(); if (dataRepositoryUserControl == null) { dataRepositoryUserControl = new DataRepositoryUserControl(); dataRepositoryUserControl.DataContext = DataRepositoryContentViewModel.Current; dockWindow = new DockWindow(dataRepositoryUserControl, DockWindowPosition.Right, "DataRepositoryPluginTitle"); dockWindow.Name = "DataRepository"; DockWindows.Add(dockWindow); } if (!DockWindows.Contains(dockWindow)) { DockWindows.Add(dockWindow); } }
protected override void LoadCore() { base.LoadCore(); if (layerListUserControl == null) { layerListUserControl = new LayerListUserControl(); dockWindow = new DockWindow { Name = "LayerList", Title = "LayerListPluginTitle", Position = DockWindowPosition.Left, Content = layerListUserControl }; DockWindows.Add(dockWindow); } if (!DockWindows.Contains(dockWindow)) { DockWindows.Add(dockWindow); } }
/// <summary> /// Handle an <see cref="OpenTexturePackMessage"/> message. /// </summary> /// <param name="message"></param> private void HandleOpenTexturePack(OpenTexturePackMessage message) { DockWindows.Add(new TexturePackViewModel(message.Pack)); }
/// <summary> /// Handle an <see cref="OpenTextureMessage"/> message. /// </summary> /// <param name="message"></param> private void HandleOpenTexture(OpenTextureMessage message) { DockWindows.Add(new TextureViewModel(message.GroupId, message.Hash)); }
/// <summary> /// Handle an <see cref="OpenSolidListMessage"/> message. /// </summary> /// <param name="message"></param> private void HandleOpenSolidList(OpenSolidListMessage message) { DockWindows.Add(new SolidsViewModel(message.SolidList)); }
protected override void UnloadCore() { base.UnloadCore(); RibbonEntries.Clear(); DockWindows.Clear(); }
/// <summary> /// This method raises when load this plugin. /// </summary> protected override void LoadCore() { RibbonEntries.Clear(); DockWindows.Clear(); }