PrimarySelectionTaskProvider Class

Provides a set of tasks that are available from the selection tool when a class is in the primary selection.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Features.FeatureProvider
    Microsoft.Windows.Design.Interaction.TaskProvider
      Microsoft.Windows.Design.Interaction.PrimarySelectionTaskProvider

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

Syntax

'Declaration
<UsesItemPolicyAttribute(GetType(PrimarySelectionPolicy))> _
Public Class PrimarySelectionTaskProvider _
    Inherits TaskProvider
[UsesItemPolicyAttribute(typeof(PrimarySelectionPolicy))]
public class PrimarySelectionTaskProvider : TaskProvider
[UsesItemPolicyAttribute(typeof(PrimarySelectionPolicy))]
public ref class PrimarySelectionTaskProvider : public TaskProvider
[<UsesItemPolicyAttribute(typeof(PrimarySelectionPolicy))>]
type PrimarySelectionTaskProvider =  
    class
        inherit TaskProvider
    end
public class PrimarySelectionTaskProvider extends TaskProvider

The PrimarySelectionTaskProvider type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Protected property Context Gets the editing context that activated this task provider. (Inherited from TaskProvider.)
Public property Tasks Gets a collection of tasks this task provider offers. (Inherited from TaskProvider.)

Top

Methods

  Name Description
Protected method Activate Called when a task provider's tasks are about to be requested for the first time. (Inherited from TaskProvider.)
Protected method Deactivate Called when a task provider is about to be discarded by the designer. (Inherited from TaskProvider.)
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.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsToolSupported Returns a value indicating whether this task provider supports the specified tool. (Inherited from TaskProvider.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

The PrimarySelectionTaskProvider is enabled for the primarily selected element 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.Interaction Namespace

PrimarySelectionPolicy

SelectionTool

Other Resources

Feature Providers and Feature Connectors

Tool Architecture

Understanding WPF Designer Extensibility