Share via


FocusedTask Class

Contains the task that currently has the focus in a tool.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.ContextItem
    Microsoft.Windows.Design.Interaction.FocusedTask

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

Syntax

'Declaration
Public NotInheritable Class FocusedTask _
    Inherits ContextItem
public sealed class FocusedTask : ContextItem
public ref class FocusedTask sealed : public ContextItem
[<Sealed>]
type FocusedTask =  
    class
        inherit ContextItem
    end
public final class FocusedTask extends ContextItem

The FocusedTask type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property ItemType Gets the key that is used in the context item dictionary to identify this type of context item. (Overrides ContextItem.ItemType.)
Public property Task Gets the task that has the focus.

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.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnItemChanged Called on a context item before it is stored in the context item manager. (Inherited from ContextItem.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

If the task is nulla null reference (Nothing in Visual Basic), no task currently has the focus. Do not create FocusedTask items yourself. Instead, activate your task through its BeginFocus method. Once a task has the focus, all user input is directed through that task until it no longer has the focus. For more information, see Task.

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

Other Resources

Understanding WPF Designer Extensibility