ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / DockPane Class / Activate Method / Activate() Method
Example

In This Topic
    Activate() Method
    In This Topic
    Activates the DockPane and gives it focus.
    Syntax
    public void Activate()
    Public Overloads Sub Activate() 
    Example
    Dockpane properties and methods
    // 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();
    
    Dockpane properties and methods
    // 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();
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also