Share via


SelectionCommands.SelectOnlyTarget Property

Gets a ToolCommand that represents a request to select only 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 SelectOnlyTarget As ToolCommand
    Get
public static ToolCommand SelectOnlyTarget { get; }
public:
static property ToolCommand^ SelectOnlyTarget {
    ToolCommand^ get ();
}
static member SelectOnlyTarget : ToolCommand
static function get SelectOnlyTarget () : ToolCommand

Property Value

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

Remarks

This command clears any previous selection. To preserve the existing selection, use the UnionSelectTarget property instead. This command selects only one object. To select multiple objects, use the SelectTarget property instead.

.NET Framework Security

See Also

Reference

SelectionCommands Class

Microsoft.Windows.Design.Interaction Namespace

Selection

SelectionOperations

SelectOnly

SelectionTool

EditingContext

CanExecute

Execute

Other Resources

WPF Designer Extensibility Architecture