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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace