80 references to ActiveXState
PresentationFramework (80)
MS\Internal\Controls\ActiveXContainer.cs (1)
71
_host.ActiveXState == ActiveXHelper.
ActiveXState
.Running)))
MS\Internal\Controls\ActiveXSite.cs (8)
167
if (HostState >= ActiveXHelper.
ActiveXState
.InPlaceActive)
231
HostState = ActiveXHelper.
ActiveXState
.InPlaceActive;
241
HostState = ActiveXHelper.
ActiveXState
.UIActive;
278
if (HostState > ActiveXHelper.
ActiveXState
.InPlaceActive)
280
HostState = ActiveXHelper.
ActiveXState
.InPlaceActive;
287
if (HostState == ActiveXHelper.
ActiveXState
.UIActive)
293
HostState = ActiveXHelper.
ActiveXState
.Running;
315
ActiveXHelper.
ActiveXState
HostState
System\Windows\Controls\WebBrowser.cs (7)
652
TransitionUpTo(ActiveXHelper.
ActiveXState
.Running);
927
if (ActiveXState != ActiveXHelper.
ActiveXState
.UIActive && this.HasFocusWithinCore())
929
Invariant.Assert(ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive);
930
ActiveXState = ActiveXHelper.
ActiveXState
.UIActive;
946
Invariant.Assert(ActiveXState >= ActiveXHelper.
ActiveXState
.UIActive, "Should be at least UIActive when we are processing accelerator keys");
957
Invariant.Assert(ActiveXState >= ActiveXHelper.
ActiveXState
.InPlaceActive, "Should be at least InPlaceActive when tabbed into");
963
this.ActiveXState = ActiveXHelper.
ActiveXState
.UIActive;
System\Windows\Interop\ActiveXHost.cs (64)
142
TransitionUpTo(ActiveXHelper.
ActiveXState
.InPlaceActive);
233
TransitionDownTo(ActiveXHelper.
ActiveXState
.Passive);
370
internal ActiveXHelper.
ActiveXState
ActiveXState
392
internal void TransitionUpTo(ActiveXHelper.
ActiveXState
state)
400
ActiveXHelper.
ActiveXState
oldState;
408
case ActiveXHelper.
ActiveXState
.Passive:
410
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded, "Failed transition");
411
this.ActiveXState = ActiveXHelper.
ActiveXState
.Loaded;
413
case ActiveXHelper.
ActiveXState
.Loaded:
415
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Running, "Failed transition");
416
this.ActiveXState = ActiveXHelper.
ActiveXState
.Running;
418
case ActiveXHelper.
ActiveXState
.Running:
420
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive, "Failed transition");
421
this.ActiveXState = ActiveXHelper.
ActiveXState
.InPlaceActive;
423
case ActiveXHelper.
ActiveXState
.InPlaceActive:
425
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.UIActive, "Failed transition");
426
this.ActiveXState = ActiveXHelper.
ActiveXState
.UIActive;
444
internal void TransitionDownTo(ActiveXHelper.
ActiveXState
state)
452
ActiveXHelper.
ActiveXState
oldState;
460
case ActiveXHelper.
ActiveXState
.Open:
462
this.ActiveXState = ActiveXHelper.
ActiveXState
.UIActive;
464
case ActiveXHelper.
ActiveXState
.UIActive:
466
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive, "Failed transition");
467
this.ActiveXState = ActiveXHelper.
ActiveXState
.InPlaceActive;
469
case ActiveXHelper.
ActiveXState
.InPlaceActive:
471
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Running, "Failed transition");
472
this.ActiveXState = ActiveXHelper.
ActiveXState
.Running;
474
case ActiveXHelper.
ActiveXState
.Running:
476
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded, "Failed transition");
477
this.ActiveXState = ActiveXHelper.
ActiveXState
.Loaded;
479
case ActiveXHelper.
ActiveXState
.Loaded:
481
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Passive, "Failed transition");
482
this.ActiveXState = ActiveXHelper.
ActiveXState
.Passive;
552
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Passive, "Wrong start state to transition from");
553
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.Passive)
564
this.ActiveXState = ActiveXHelper.
ActiveXState
.Loaded;
575
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded, "Wrong start state to transition from");
576
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded)
603
this.ActiveXState = ActiveXHelper.
ActiveXState
.Passive;
609
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded, "Wrong start state to transition from");
610
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded)
628
this.ActiveXState = ActiveXHelper.
ActiveXState
.Running;
634
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Running, "Wrong start state to transition from");
635
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.Running)
645
this.ActiveXState = ActiveXHelper.
ActiveXState
.Loaded;
651
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Running, "Wrong start state to transition from");
652
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.Running)
672
this.ActiveXState = ActiveXHelper.
ActiveXState
.InPlaceActive;
678
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive, "Wrong start state to transition from");
679
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive)
687
this.ActiveXState = ActiveXHelper.
ActiveXState
.Running;
693
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive, "Wrong start state to transition from");
694
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive)
700
this.ActiveXState = ActiveXHelper.
ActiveXState
.UIActive;
706
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.UIActive, "Wrong start state to transition from");
707
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.UIActive)
714
this.ActiveXState = ActiveXHelper.
ActiveXState
.InPlaceActive;
880
Invariant.Assert(axhost.ActiveXState >= ActiveXHelper.
ActiveXState
.InPlaceActive, "Should at least be InPlaceActive when getting focus");
882
if (axhost.ActiveXState < ActiveXHelper.
ActiveXState
.UIActive)
884
axhost.TransitionUpTo(ActiveXHelper.
ActiveXState
.UIActive);
900
Invariant.Assert(axhost.ActiveXState >= ActiveXHelper.
ActiveXState
.UIActive, "Should at least be UIActive when losing focus");
906
axhost.TransitionDownTo(ActiveXHelper.
ActiveXState
.InPlaceActive);
1046
private ActiveXHelper.
ActiveXState
_axState = ActiveXHelper.
ActiveXState
.Passive;