Share via


SelectionParentPolicy.IsInPolicy Method (Selection, ModelItem, ModelItem)

Evaluates whether the specified parent item is to be included in the policy.

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

Syntax

'Declaration
Protected Overridable Function IsInPolicy ( _
    selection As Selection, _
    item As ModelItem, _
    parent As ModelItem _
) As Boolean
protected virtual bool IsInPolicy(
    Selection selection,
    ModelItem item,
    ModelItem parent
)
protected:
virtual bool IsInPolicy(
    Selection^ selection, 
    ModelItem^ item, 
    ModelItem^ parent
)
abstract IsInPolicy : 
        selection:Selection * 
        item:ModelItem * 
        parent:ModelItem -> bool 
override IsInPolicy : 
        selection:Selection * 
        item:ModelItem * 
        parent:ModelItem -> bool 
protected function IsInPolicy(
    selection : Selection, 
    item : ModelItem, 
    parent : ModelItem
) : boolean

Parameters

Return Value

Type: System.Boolean
true if parent is to be included in the policy; otherwise, false.

Remarks

Override this method when a simple check is sufficient for policy logic.

.NET Framework Security

See Also

Reference

SelectionParentPolicy Class

IsInPolicy Overload

Microsoft.Windows.Design.Policies Namespace

ItemPolicy

SelectionPolicy

FeatureProvider

FeatureConnectorAttribute

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility