Share via


SecondarySelectionPolicy Class

A policy that specifies all items in the selection that are not the primary selection.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Policies.ItemPolicy
    Microsoft.Windows.Design.Policies.SelectionPolicy
      Microsoft.Windows.Design.Policies.SecondarySelectionPolicy

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

Syntax

'Declaration
Public Class SecondarySelectionPolicy _
    Inherits SelectionPolicy
public class SecondarySelectionPolicy : SelectionPolicy
public ref class SecondarySelectionPolicy : public SelectionPolicy
type SecondarySelectionPolicy =  
    class
        inherit SelectionPolicy
    end
public class SecondarySelectionPolicy extends SelectionPolicy

The SecondarySelectionPolicy type exposes the following members.

Constructors

  Name Description
Public method SecondarySelectionPolicy Initializes a new instance of the SecondarySelectionPolicy class.

Top

Properties

  Name Description
Protected property Context Gets the editing context for the designer. (Inherited from ItemPolicy.)
Public property IsSurrogate Gets a value indicating whether the policy is a surrogate policy. (Inherited from ItemPolicy.)
Public property PolicyItems Gets an enumeration of items that are affected by this policy. (Inherited from SelectionPolicy.)

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetPolicyItems Returns the policy items from the specified selection. (Inherited from SelectionPolicy.)
Public method GetSurrogateItems Returns an optional set of surrogate items for this item. (Inherited from ItemPolicy.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method IsInPolicy Gets a value indicating whether the specified item is in the selection and is not the primary selection. (Overrides SelectionPolicy.IsInPolicy(Selection, ModelItem).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnActivated Called when this policy is activated. (Inherited from SelectionPolicy.)
Protected method OnDeactivated Called when this policy is deactivated. (Inherited from SelectionPolicy.)
Protected method OnPolicyItemsChanged Raises the PolicyItemsChanged event. (Inherited from ItemPolicy.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event PolicyItemsChanged Occurs when the policy changes. (Inherited from ItemPolicy.)

Top

Remarks

The SecondarySelectionPolicy class is an ItemPolicy that is enabled when SelectionTool is the active tool.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Windows.Design.Policies Namespace

PrimarySelectionPolicy

FeatureProvider

FeatureConnectorAttribute

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility