UIContext Class

 

Represents the active state of a UI context.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

System.Object
  Microsoft.VisualStudio.Shell.UIContext

public sealed class UIContext : INotifyPropertyChanged

NameDescription
System_CAPS_pubpropertyIsActive

Gets the current state of the UI context, whether it is active or not.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticFromUIContextGuid(Guid)

Constructs a UIContext instance identified with the given GUID.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodWhenActivated(Action)

Execute the given action if the context is active. If the context is not currently active, the action will be executed when it is first activated. The action executes at most once.

NameDescription
System_CAPS_pubeventPropertyChanged

Occurs when the IsActive property changes values.

System_CAPS_pubeventUIContextChanged

Occurs whenever the UI context becomes active or inactive.

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

Return to top
Show: