Share via


SelectionCommands.SelectTarget Property

Gets a ToolCommand that represents a request to select the object under the mouse pointer in the designer.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Shared ReadOnly Property SelectTarget As ToolCommand
    Get
public static ToolCommand SelectTarget { get; }
public:
static property ToolCommand^ SelectTarget {
    ToolCommand^ get ();
}
static member SelectTarget : ToolCommand
static function get SelectTarget () : ToolCommand

Property Value

Type: Microsoft.Windows.Design.Interaction.ToolCommand
A request to select the object under the mouse pointer in the designer.

Remarks

If the object under the mouse pointer is already selected, this property promotes the object to be the primary selection object. Otherwise, this command clears any previous selection. To preserve the existing selection, use the UnionSelectTarget property instead. This command selects multiple objects. To select a single object, use the SelectOnlyTarget property instead.

.NET Framework Security

See Also

Reference

SelectionCommands Class

Microsoft.Windows.Design.Interaction Namespace

Selection

SelectionOperations

Select

SelectionTool

EditingContext

CanExecute

Execute

Other Resources

WPF Designer Extensibility Architecture