Share via


Selection.ViewSelection Property

Gets a selection that contains model items that provide a view.

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

Syntax

'Declaration
Public ReadOnly Property ViewSelection As Selection
    Get
public Selection ViewSelection { get; }
public:
property Selection^ ViewSelection {
    Selection^ get ();
}
member ViewSelection : Selection
function get ViewSelection () : Selection

Property Value

Type: Microsoft.Windows.Design.Interaction.Selection
A Selection that contains model items that provide a view.

Remarks

The view selection is a selection that contains model items that provide a view. This property is generally the selection to use for UI interaction on the design surface. It is calculated from the full set of selected items. If a selected item does not offer a valid view, its ancestors are traversed until a valid view is reached. The ViewSelection property returns the union of all such items.

If the current set of selected objects all provide a valid view item, the ViewSelection property is the same selection instance as this selection.

.NET Framework Security

See Also

Reference

Selection Class

Microsoft.Windows.Design.Interaction Namespace

Selection

SelectionCommands

SelectionOperations

SelectionTool

EditingContext

ModelItem

Other Resources

WPF Designer Extensibility Architecture