共用方式為


UIContext.UIContextChanged Event

Occurs whenever the UI context becomes active or inactive.

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

Syntax

'宣告
Public Event UIContextChanged As EventHandler(Of UIContextChangedEventArgs)
public event EventHandler<UIContextChangedEventArgs> UIContextChanged

.NET Framework Security

See Also

Reference

UIContext Class

Microsoft.VisualStudio.Shell Namespace