USDTab.CloseControlExecuted(Object, ExecutedRoutedEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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=”” />