80 references to ActiveXState
PresentationFramework (80)
MS\Internal\Controls\ActiveXContainer.cs (1)
78
_host.ActiveXState == ActiveXHelper.
ActiveXState
.Running)))
MS\Internal\Controls\ActiveXSite.cs (8)
175
if (HostState >= ActiveXHelper.
ActiveXState
.InPlaceActive)
239
HostState = ActiveXHelper.
ActiveXState
.InPlaceActive;
249
HostState = ActiveXHelper.
ActiveXState
.UIActive;
286
if (HostState > ActiveXHelper.
ActiveXState
.InPlaceActive)
288
HostState = ActiveXHelper.
ActiveXState
.InPlaceActive;
295
if (HostState == ActiveXHelper.
ActiveXState
.UIActive)
301
HostState = ActiveXHelper.
ActiveXState
.Running;
323
ActiveXHelper.
ActiveXState
HostState
System\Windows\Controls\WebBrowser.cs (7)
660
TransitionUpTo(ActiveXHelper.
ActiveXState
.Running);
935
if (ActiveXState != ActiveXHelper.
ActiveXState
.UIActive && this.HasFocusWithinCore())
937
Invariant.Assert(ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive);
938
ActiveXState = ActiveXHelper.
ActiveXState
.UIActive;
954
Invariant.Assert(ActiveXState >= ActiveXHelper.
ActiveXState
.UIActive, "Should be at least UIActive when we are processing accelerator keys");
965
Invariant.Assert(ActiveXState >= ActiveXHelper.
ActiveXState
.InPlaceActive, "Should be at least InPlaceActive when tabbed into");
971
this.ActiveXState = ActiveXHelper.
ActiveXState
.UIActive;
System\Windows\Interop\ActiveXHost.cs (64)
156
TransitionUpTo(ActiveXHelper.
ActiveXState
.InPlaceActive);
247
TransitionDownTo(ActiveXHelper.
ActiveXState
.Passive);
384
internal ActiveXHelper.
ActiveXState
ActiveXState
406
internal void TransitionUpTo(ActiveXHelper.
ActiveXState
state)
414
ActiveXHelper.
ActiveXState
oldState;
422
case ActiveXHelper.
ActiveXState
.Passive:
424
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded, "Failed transition");
425
this.ActiveXState = ActiveXHelper.
ActiveXState
.Loaded;
427
case ActiveXHelper.
ActiveXState
.Loaded:
429
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Running, "Failed transition");
430
this.ActiveXState = ActiveXHelper.
ActiveXState
.Running;
432
case ActiveXHelper.
ActiveXState
.Running:
434
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive, "Failed transition");
435
this.ActiveXState = ActiveXHelper.
ActiveXState
.InPlaceActive;
437
case ActiveXHelper.
ActiveXState
.InPlaceActive:
439
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.UIActive, "Failed transition");
440
this.ActiveXState = ActiveXHelper.
ActiveXState
.UIActive;
458
internal void TransitionDownTo(ActiveXHelper.
ActiveXState
state)
466
ActiveXHelper.
ActiveXState
oldState;
474
case ActiveXHelper.
ActiveXState
.Open:
476
this.ActiveXState = ActiveXHelper.
ActiveXState
.UIActive;
478
case ActiveXHelper.
ActiveXState
.UIActive:
480
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive, "Failed transition");
481
this.ActiveXState = ActiveXHelper.
ActiveXState
.InPlaceActive;
483
case ActiveXHelper.
ActiveXState
.InPlaceActive:
485
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Running, "Failed transition");
486
this.ActiveXState = ActiveXHelper.
ActiveXState
.Running;
488
case ActiveXHelper.
ActiveXState
.Running:
490
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded, "Failed transition");
491
this.ActiveXState = ActiveXHelper.
ActiveXState
.Loaded;
493
case ActiveXHelper.
ActiveXState
.Loaded:
495
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Passive, "Failed transition");
496
this.ActiveXState = ActiveXHelper.
ActiveXState
.Passive;
566
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Passive, "Wrong start state to transition from");
567
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.Passive)
578
this.ActiveXState = ActiveXHelper.
ActiveXState
.Loaded;
589
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded, "Wrong start state to transition from");
590
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded)
617
this.ActiveXState = ActiveXHelper.
ActiveXState
.Passive;
623
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded, "Wrong start state to transition from");
624
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.Loaded)
642
this.ActiveXState = ActiveXHelper.
ActiveXState
.Running;
648
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Running, "Wrong start state to transition from");
649
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.Running)
659
this.ActiveXState = ActiveXHelper.
ActiveXState
.Loaded;
665
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.Running, "Wrong start state to transition from");
666
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.Running)
686
this.ActiveXState = ActiveXHelper.
ActiveXState
.InPlaceActive;
692
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive, "Wrong start state to transition from");
693
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive)
701
this.ActiveXState = ActiveXHelper.
ActiveXState
.Running;
707
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive, "Wrong start state to transition from");
708
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.InPlaceActive)
714
this.ActiveXState = ActiveXHelper.
ActiveXState
.UIActive;
720
Debug.Assert(this.ActiveXState == ActiveXHelper.
ActiveXState
.UIActive, "Wrong start state to transition from");
721
if (this.ActiveXState == ActiveXHelper.
ActiveXState
.UIActive)
728
this.ActiveXState = ActiveXHelper.
ActiveXState
.InPlaceActive;
894
Invariant.Assert(axhost.ActiveXState >= ActiveXHelper.
ActiveXState
.InPlaceActive, "Should at least be InPlaceActive when getting focus");
896
if (axhost.ActiveXState < ActiveXHelper.
ActiveXState
.UIActive)
898
axhost.TransitionUpTo(ActiveXHelper.
ActiveXState
.UIActive);
914
Invariant.Assert(axhost.ActiveXState >= ActiveXHelper.
ActiveXState
.UIActive, "Should at least be UIActive when losing focus");
920
axhost.TransitionDownTo(ActiveXHelper.
ActiveXState
.InPlaceActive);
1058
private ActiveXHelper.
ActiveXState
_axState = ActiveXHelper.
ActiveXState
.Passive;