diff --git a/src/toolkit/Community.VisualStudio.Toolkit.Shared/Windows/WindowFrame.cs b/src/toolkit/Community.VisualStudio.Toolkit.Shared/Windows/WindowFrame.cs index df0af42..3cc5b18 100644 --- a/src/toolkit/Community.VisualStudio.Toolkit.Shared/Windows/WindowFrame.cs +++ b/src/toolkit/Community.VisualStudio.Toolkit.Shared/Windows/WindowFrame.cs @@ -232,7 +232,7 @@ public async Task IsOnScreenAsync() public async Task GetDocumentViewAsync() { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); - + // Force the loading of a document that may be pending initialization. // See https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/delayed-document-loading _frame.GetProperty((int)__VSFPROPID.VSFPROPID_DocView, out _); @@ -440,31 +440,85 @@ public enum FramePosition /// /// Specifies options when the show state of a window frame changes. /// - [Flags] + /// + /// This combines the values from + /// , + /// , + /// and + /// . + /// public enum FrameShow { - /// Reason unknown - Unknown = 0, - /// Obsolete; use WinHidden. - Hidden = __FRAMESHOW.FRAMESHOW_Hidden, - /// Window (tabbed or otherwise) is hidden. - WinHidden = __FRAMESHOW.FRAMESHOW_WinHidden, - /// A nontabbed window is made visible. + /// + /// Window (tabbed or otherwise) is hidden. + /// Equivalent to . + /// + Hidden = __FRAMESHOW.FRAMESHOW_WinHidden, + /// + /// A non-tabbed window is made visible. + /// Equivalent to . + /// Shown = __FRAMESHOW.FRAMESHOW_WinShown, - /// A tabbed window is activated (made visible). + /// + /// A tabbed window is activated (made visible). + /// Equivalent to . + /// TabActivated = __FRAMESHOW.FRAMESHOW_TabActivated, - /// A tabbed window is deactivated. + /// + /// A tabbed window is deactivated. + /// Equivalent to . + /// TabDeactivated = __FRAMESHOW.FRAMESHOW_TabDeactivated, - /// Window is restored to normal state. + /// + /// Window is restored to normal state. + /// Equivalent to . + /// Restored = __FRAMESHOW.FRAMESHOW_WinRestored, - /// Window is minimized. + /// + /// Window is minimized. + /// Equivalent to . + /// Minimized = __FRAMESHOW.FRAMESHOW_WinMinimized, - /// Window is maximized. + /// + /// Window is maximized. + /// Equivalent to . + /// Maximized = __FRAMESHOW.FRAMESHOW_WinMaximized, - /// Multi-instance tool window destroyed. + /// + /// Multi-instance tool window destroyed. + /// Equivalent to . + /// DestroyMultipleInstance = __FRAMESHOW.FRAMESHOW_DestroyMultInst, - /// Autohidden window is about to slide into view. - AutoHideSlideBegin = __FRAMESHOW.FRAMESHOW_AutoHideSlideBegin + /// + /// Auto-hidden window is about to slide into view. + /// Equivalent to . + /// + AutoHideSlideBegin = __FRAMESHOW.FRAMESHOW_AutoHideSlideBegin, + /// + /// A window is about to be hidden. + /// Equivalent to . + /// + BeforeHidden = __FRAMESHOW2.FRAMESHOW_BeforeWinHidden, + /// + /// Auto-hidden window is finished sliding into view. + /// Equivalent to . + /// + AutoHideSlideEnd = __FRAMESHOW2.FRAMESHOW_AutoHideSlideEnd, + /// + /// A window is activated (made visible). + /// Equivalent to . + /// + Activated = __FRAMESHOW3.FRAMESHOW_WinActivated, + /// + /// The window's inner content received keyboard focus. + /// Equivalent to . + /// + ContentGotFocus = __FRAMESHOW4.FRAMESHOW_WinContentGotFocus, + /// + /// The window's inner content lost keyboard focus. + /// Equivalent to . + /// + ContentLostFocus = __FRAMESHOW4.FRAMESHOW_WinContentLostFocus } /// @@ -551,4 +605,16 @@ public WindowFrameDockChangedEventArgs(Rectangle position, bool docked) Docked = docked; } } + + +#if VS14 + /// + /// __FRAMESHOW4 was first defined in Visual Studio 15. + /// + internal enum __FRAMESHOW4 + { + FRAMESHOW_WinContentGotFocus = 13, + FRAMESHOW_WinContentLostFocus + } +#endif } \ No newline at end of file