Partager via


USDTab.CloseControlExecuted(Object, ExecutedRoutedEventArgs) Method

Definition

Internal binding function used for XAML declarative actions.

public:
 void CloseControlExecuted(System::Object ^ sender, System::Windows::Input::ExecutedRoutedEventArgs ^ e);
public void CloseControlExecuted (object sender, System.Windows.Input.ExecutedRoutedEventArgs e);
member this.CloseControlExecuted : obj * System.Windows.Input.ExecutedRoutedEventArgs -> unit
Public Sub CloseControlExecuted (sender As Object, e As ExecutedRoutedEventArgs)

Parameters

sender
Object

Specifies the control that the action is for.

e
ExecutedRoutedEventArgs

Specifies the event arguments.

Remarks

The control bindings in your XAML should appear as follows:

<Control.CommandBindings>

<CommandBinding Command = “usd:ActionCommands.CloseControl”
                CanExecute=”CloseControlCanExecute”
                Executed=”CloseControlExecuted” />
</Control.CommandBindings>

A button that uses these bindings should be declared as follows:

<Button Command=”usd:ActionCommands.CloseControl” CommandParameter=”” />

Applies to