using ArcGIS.Core.CIM; using ArcGIS.Core.Data; using ArcGIS.Core.Geometry; using ArcGIS.Desktop.Catalog; using ArcGIS.Desktop.Core; using ArcGIS.Desktop.Editing; using ArcGIS.Desktop.Extensions; using ArcGIS.Desktop.Framework; using ArcGIS.Desktop.Framework.Contracts; using ArcGIS.Desktop.Framework.Dialogs; using ArcGIS.Desktop.Framework.Threading.Tasks; using ArcGIS.Desktop.KnowledgeGraph; using ArcGIS.Desktop.Layouts; using ArcGIS.Desktop.Mapping; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LinkToolAddin.ui.dockpane { internal class TestDockpaneViewModel : DockPane { private const string _dockPaneID = "LinkToolAddin_ui_dockpane_TestDockpane"; protected TestDockpaneViewModel() { } /// /// Show the DockPane. /// internal static void Show() { DockPane pane = FrameworkApplication.DockPaneManager.Find(_dockPaneID); if (pane == null) return; pane.Activate(); } /// /// Text shown near the top of the DockPane. /// private string _heading = "My DockPane"; public string Heading { get => _heading; set => SetProperty(ref _heading, value); } } /// /// Button implementation to show the DockPane. /// internal class TestDockpane_ShowButton : Button { protected override void OnClick() { TestDockpaneViewModel.Show(); } } }