static TabTipAutomation() { if (EnvironmentEx.GetOSVersion() == OSVersion.Win7) { return; } TabTip.Closed += () => TabTipClosedSubject.OnNext(true); AutomateTabTipOpen(FocusSubject.AsObservable()); AutomateTabTipClose(FocusSubject.AsObservable(), TabTipClosedSubject); AnimationHelper.ExceptionCatched += exception => ExceptionCatched?.Invoke(exception); TabTip.ExceptionCatched += exception => ExceptionCatched?.Invoke(exception); }