Determines when a button that can be used to display the 'PaneNavigator' is displayed within the XamDockManager.
Syntax
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 Basic | Copy 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
e.Cancel = True
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;
}
} |
| XAML | Copy Code |
|---|
<igDock:XamDockManager PaneNavigatorButtonDisplayMode="Never" ExecutingCommand="XamDockManager_ExecutingCommand"> </igDock:XamDockManager> |
See Also