Compartir a través de


UIContext Class

Represents the active state of a UI context.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Shell.UIContext

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

Syntax

'Declaration
Public NotInheritable Class UIContext _
    Implements INotifyPropertyChanged
public sealed class UIContext : INotifyPropertyChanged
public ref class UIContext sealed : INotifyPropertyChanged
[<Sealed>]
type UIContext =  
    class 
        interface INotifyPropertyChanged 
    end
public final class UIContext implements INotifyPropertyChanged

The UIContext type exposes the following members.

Properties

  Name Description
Public property IsActive Gets the current state of the UI context, whether it is active or not.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic member FromUIContextGuid Constructs a UIContext instance identified with the given GUID.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event PropertyChanged Occurs when the IsActive property changes values.
Public event UIContextChanged Occurs whenever the UI context becomes active or inactive.

Top

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.VisualStudio.Shell Namespace