private static void OnIsEnabledInvalidated(ActiveXHost axHost) { //Consider: ActiveX equivalent? //if (axHost != null) //{ // axHost.HostedControl.Enabled = axHost.IsEnabled; //} }
internal ActiveXSite(ActiveXHost host) { if (host == null) { throw new ArgumentNullException("host"); } _host = host; }
private static void OnIsEnabledInvalidated(ActiveXHost axHost) { // }
// Token: 0x06006198 RID: 24984 RVA: 0x001B5E20 File Offset: 0x001B4020 private static void OnVisibilityInvalidated(ActiveXHost axHost) { if (axHost != null) { switch (axHost.Visibility) { } } }
// Token: 0x06006199 RID: 24985 RVA: 0x001B5E4C File Offset: 0x001B404C private static void OnGotFocus(object sender, KeyboardFocusChangedEventArgs e) { ActiveXHost activeXHost = sender as ActiveXHost; if (activeXHost != null) { Invariant.Assert(activeXHost.ActiveXState >= ActiveXHelper.ActiveXState.InPlaceActive, "Should at least be InPlaceActive when getting focus"); if (activeXHost.ActiveXState < ActiveXHelper.ActiveXState.UIActive) { activeXHost.TransitionUpTo(ActiveXHelper.ActiveXState.UIActive); } } }
// Token: 0x0600619A RID: 24986 RVA: 0x001B5E8C File Offset: 0x001B408C private static void OnLostFocus(object sender, KeyboardFocusChangedEventArgs e) { ActiveXHost activeXHost = sender as ActiveXHost; if (activeXHost != null) { Invariant.Assert(activeXHost.ActiveXState >= ActiveXHelper.ActiveXState.UIActive, "Should at least be UIActive when losing focus"); bool flag = !activeXHost.IsKeyboardFocusWithin; if (flag) { activeXHost.TransitionDownTo(ActiveXHelper.ActiveXState.InPlaceActive); } } }
/// This event handler forwards focus events to the hosted WF controls private static void OnLostFocus(object sender, KeyboardFocusChangedEventArgs e) { ActiveXHost axhost = sender as ActiveXHost; if (axhost != null) { // If the focus goes from our control window to one of the child windows, // we should not deactivate. // Invariant.Assert(axhost.ActiveXState >= ActiveXHelper.ActiveXState.UIActive, "Should at least be UIActive when losing focus"); bool uiDeactivate = !axhost.IsKeyboardFocusWithin; if (uiDeactivate) { axhost.TransitionDownTo(ActiveXHelper.ActiveXState.InPlaceActive); } } }
private static void OnVisibilityInvalidated(ActiveXHost axHost) { if (axHost != null) { switch (axHost.Visibility) { case Visibility.Visible: // break; case Visibility.Collapsed: // break; case Visibility.Hidden: // break; } } }
private static void OnVisibilityInvalidated(ActiveXHost axHost) { if (axHost != null) { switch (axHost.Visibility) { case Visibility.Visible: //Consider: axHost.HostedControl.Visible = true; break; case Visibility.Collapsed: //Consider: axHost.HostedControl.Visible = false; break; case Visibility.Hidden: //Consider: //axHost._cachedSize = axHost.HostedControl.PreferredSize; //axHost._hidden = true; //axHost.HostedControl.Visible = false; break; } } }
internal ActiveXContainer(ActiveXHost host) { this._host = host; Invariant.Assert(_host != null); }
internal void OnInPlaceDeactivate(ActiveXHost site) { // if (this.ActiveXHost == site) { } }
internal void OnUIDeactivate(ActiveXHost site) { #if DEBUG if (_siteUIActive != null) { // Debug.Assert(this.ActiveXHost == site, "deactivating when not active..."); } #endif // DEBUG // _siteUIActive = null; }
internal void OnUIActivate(ActiveXHost site) { // The ShDocVw control repeatedly calls OnUIActivate() with the same // site. This causes the assert below to fire. // if (_siteUIActive == site) return; if (_siteUIActive != null ) { //[....] WebOC also uses ActiveXHost instead of ActiveXSite. //Ideally it should have been the site but since its a 1-1 relationship //for hosting the webOC, it will work ActiveXHost tempSite = _siteUIActive; tempSite.ActiveXInPlaceObject.UIDeactivate(); } Debug.Assert(_siteUIActive == null, "Object did not call OnUIDeactivate"); _siteUIActive = site; // }