CommandTarget Property

MenuItem::CommandTarget Property

 

Gets or sets the target element on which to raise the specified command.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
[BindableAttribute(true)]
property IInputElement^ CommandTarget {
	virtual IInputElement^ get() sealed;
	virtual void set(IInputElement^ value) sealed;
}

Property Value

Type: System.Windows::IInputElement^

The element on which to raise the specified command. The default is null.

The CommandTarget property specifies the element where the command occurs. If CommandTarget is not set, the element that has keyboard focus will receive the command.

Identifier field

CommandTargetProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft