Share via


SelectionCommands.ToggleSelectTarget Property

Gets a ToolCommand that represents a request to toggle the selection state of 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 ToggleSelectTarget As ToolCommand
    Get
public static ToolCommand ToggleSelectTarget { get; }
public:
static property ToolCommand^ ToggleSelectTarget {
    ToolCommand^ get ();
}
static member ToggleSelectTarget : ToolCommand
static function get ToggleSelectTarget () : ToolCommand

Property Value

Type: Microsoft.Windows.Design.Interaction.ToolCommand
A request to toggle the selection state of the object under the mouse pointer in the designer.

Remarks

If the object under the mouse pointer is already selected, it is deselected. If the object is not selected, it becomes selected. This command does not change the selected state of any other objects in the designer.

.NET Framework Security

See Also

Reference

SelectionCommands Class

Microsoft.Windows.Design.Interaction Namespace

Selection

SelectionOperations

Toggle

SelectionTool

EditingContext

CanExecute

Execute

Other Resources

WPF Designer Extensibility Architecture