Infragistics3.Wpf.DockManager.v8.1
PaneNavigatorButtonDisplayMode Property
See Also  Example
Infragistics.Windows.DockManager Namespace > XamDockManager Class : PaneNavigatorButtonDisplayMode Property

Determines when a button that can be used to display the 'PaneNavigator' is displayed within the XamDockManager.

Syntax

Visual Basic (Declaration) 
Public Property PaneNavigatorButtonDisplayMode As PaneNavigatorButtonDisplayMode
C# 
public PaneNavigatorButtonDisplayMode PaneNavigatorButtonDisplayMode {get; set;}

Example

This sample shows how to prevent the navigator from being displayed both via the ui and via keyboard.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Visual BasicCopy Code
Imports Infragistics.Windows.DockManager
Imports Infragistics.Windows.DockManager.Events

Private Sub XamDockManager_ExecutingCommand(ByVal sender As Object, ByVal e As ExecutingCommandEventArgs)
    If e.Command Is DockManagerCommands.ShowPaneNavigator Then
        ' prevent this command from being processed by the xamdockmanager
        e.Cancel = True

        ' prevent the event from bubbling up any further
        e.Handled = True
    End If
End Sub
C#Copy Code
using Infragistics.Windows.DockManager;
using Infragistics.Windows.DockManager.Events;

private void XamDockManager_ExecutingCommand(object sender, ExecutingCommandEventArgs e)
{
   
if (e.Command == DockManagerCommands.ShowPaneNavigator)
   {
       
// prevent this command from being processed by the xamdockmanager
       
e.Cancel = true;

       
// prevent the event from bubbling up any further
       
e.Handled = true;
   }
}  
XAMLCopy Code
<igDock:XamDockManager 
    
PaneNavigatorButtonDisplayMode="Never"
    
ExecutingCommand="XamDockManager_ExecutingCommand">
</igDock:XamDockManager>

See Also