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 | |
---|---|---|
FocusedTask | Initializes a new instance of the FocusedTask class. |
Top
Properties
Name | Description | |
---|---|---|
ItemType | Gets the key that is used in the context item dictionary to identify this type of context item. (Overrides ContextItem.ItemType.) | |
Task | Gets the task that has the focus. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnItemChanged | Called on a context item before it is stored in the context item manager. (Inherited from ContextItem.) | |
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