Share via


SelectionParentPolicy.GetPolicyItems Method

Overrides the default GetPolicyItems method to return the unique parents of the specified selection.

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

Syntax

'Declaration
Protected Overrides Function GetPolicyItems ( _
    selection As Selection _
) As IEnumerable(Of ModelItem)
protected override IEnumerable<ModelItem> GetPolicyItems(
    Selection selection
)
protected:
virtual IEnumerable<ModelItem^>^ GetPolicyItems(
    Selection^ selection
) override
abstract GetPolicyItems : 
        selection:Selection -> IEnumerable<ModelItem> 
override GetPolicyItems : 
        selection:Selection -> IEnumerable<ModelItem> 
protected override function GetPolicyItems(
    selection : Selection
) : IEnumerable<ModelItem>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ModelItem>
An enumeration of unique parents for the given selection.

Remarks

The policy specifies the immediate parents of the selected items.

.NET Framework Security

See Also

Reference

SelectionParentPolicy Class

Microsoft.Windows.Design.Policies Namespace

ItemPolicy

SelectionPolicy

FeatureProvider

FeatureConnectorAttribute

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility