'宣言 Public Shared ReadOnly ExecutedCommandEvent As RoutedEvent
public static readonly RoutedEvent ExecutedCommandEvent
Imports Infragistics.Windows.DockManager Imports Infragistics.Windows.DockManager.Events Private Sub XamDockManager_ExecutedCommand(ByVal sender As Object, ByVal e As ExecutedCommandEventArgs) ' display the name of the command executed System.Diagnostics.Debug.WriteLine(e.Command.OwnerType.Name + "." + e.Command.Name) End Sub
using Infragistics.Windows.DockManager; using Infragistics.Windows.DockManager.Events; private void XamDockManager_ExecutedCommand(object sender, ExecutedCommandEventArgs e) { // display the name of the command executed System.Diagnostics.Debug.WriteLine(e.Command.OwnerType.Name + "." + e.Command.Name); }