'宣言 Public Shared ReadOnly ExecutingCommandEvent As RoutedEvent
public static readonly RoutedEvent ExecutingCommandEvent
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
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; } }