Parameters
- id
- The DAML identifier.
Return Value
Returns the dock pane associated with the specified DAML ID.
// in order to find a dockpane you need to know it's DAML id var pane = FrameworkApplication.DockPaneManager.Find("esri_core_ProjectDockPane");
// in order to find a dockpane you need to know it's DAML id var pane = FrameworkApplication.DockPaneManager.Find("esri_core_ProjectDockPane"); // determine visibility bool visible = pane.IsVisible; // activate it pane.Activate(); // determine dockpane state DockPaneState state = pane.DockState; // pin it pane.Pin(); // hide it pane.Hide();
// in order to find a dockpane you need to know it's DAML id var pane = FrameworkApplication.DockPaneManager.Find("esri_core_contentsDockPane"); // get the undo stack OperationManager manager = pane.OperationManager; if (manager != null) { // undo an operation if (manager.CanUndo) await manager.UndoAsync(); // redo an operation if (manager.CanRedo) await manager.RedoAsync(); // clear the undo and redo stack of operations of a particular category manager.ClearUndoCategory("Some category"); manager.ClearRedoCategory("Some category"); }
// in order to find a dockpane you need to know it's DAML id. // Here is a DAML example with a dockpane defined. Once you have found the dockpane you can cast it // to the dockpane viewModel which is defined by the className attribute. // //<dockPanes> // <dockPane id="MySample_Dockpane" caption="Dockpane 1" className="Dockpane1ViewModel" dock="bottom" height="5"> // <content className="Dockpane1View" /> // </dockPane> //</dockPanes> Dockpane1ViewModel vm = FrameworkApplication.DockPaneManager.Find("MySample_Dockpane") as Dockpane1ViewModel;
Target Platforms: Windows 11, Windows 10, Windows 8.1