61 references to CheckAccess
PresentationCore (12)
Core\CSharp\System\Windows\Input\Command\CanExecuteChangedEventManager.cs (1)
97
bool isOnOriginalThread = !purgeAll ||
CheckAccess
();
Core\CSharp\System\Windows\Media\Animation\IndependentAnimationStorage.cs (1)
115
Debug.Assert(d.
CheckAccess
());
Core\CSharp\System\Windows\Media\HostVisual.cs (2)
170
if (this.
CheckAccess
())
270
if (_target.
CheckAccess
())
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1629
if ((bitmapDecoder != null) && bitmapDecoder.
CheckAccess
())
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (1)
326
bitmapImage.
CheckAccess
() &&
Core\CSharp\System\Windows\Media\MediaContext.cs (6)
379
Debug.Assert(
CheckAccess
());
1450
Debug.Assert(
CheckAccess
());
1467
Debug.Assert(
CheckAccess
());
1721
Debug.Assert(
CheckAccess
());
1851
Debug.Assert(
CheckAccess
());
2091
Debug.Assert(
CheckAccess
());
PresentationFramework (48)
src\Framework\MS\Internal\AppModel\AppSecurityManager.cs (1)
179
if (Application.Current != null && Application.Current.
CheckAccess
())
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
526
if (
CheckAccess
()) // initial call by Dispatcher?
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (1)
399
Debug.Assert(canvas.
CheckAccess
());
src\Framework\System\Windows\Application.cs (5)
1638
Debug.Assert(
CheckAccess
(), "This should only be called on the Application thread");
1703
Debug.Assert(
CheckAccess
() == true, "DoShutdown can only be called on the Dispatcer thread");
1810
if (window.
CheckAccess
() == false)
2124
if ((app != null) && (app.
CheckAccess
()))
2430
if (wc[i].
CheckAccess
() == true)
src\Framework\System\Windows\Controls\ComboBox.cs (2)
1738
Debug.Assert(!comboBox.
CheckAccess
() || Mouse.Captured != comboBox, "On the dispatcher thread, ComboBox should not have capture after closing the dropdown");
1786
Debug.Assert(!
CheckAccess
() || Mouse.Captured != this, "On the dispatcher thread, ComboBox should not have capture after closing the dropdown");
src\Framework\System\Windows\Controls\Control.cs (1)
494
if (
CheckAccess
())
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2276
if (Application.Current != null && Application.Current.
CheckAccess
())
src\Framework\System\Windows\Controls\HeaderedContentControl.cs (1)
398
if (
CheckAccess
())
src\Framework\System\Windows\Controls\HeaderedItemsControl.cs (1)
340
if (
CheckAccess
())
src\Framework\System\Windows\Controls\Image.cs (4)
476
if (newBitmapSource != null && newBitmapSource.
CheckAccess
() && !newBitmapSource.IsFrozen)
606
if (typedSource.
CheckAccess
() && !typedSource.IsFrozen)
732
if (typedSource.
CheckAccess
() && !typedSource.IsFrozen)
858
if (typedSource.
CheckAccess
() && !typedSource.IsFrozen)
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
819
Debug.Assert(
CheckAccess
(), "IsMenuMode requires context access");
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
1930
if (
CheckAccess
())
1938
Debug.Assert(
CheckAccess
(), "AsyncReposition not called on the dispatcher thread.");
src\Framework\System\Windows\Controls\Primitives\RangeBase.cs (1)
385
if (
CheckAccess
())
src\Framework\System\Windows\Controls\Primitives\Selector.cs (5)
2327
Debug.Assert(_owner.
CheckAccess
());
2340
Debug.Assert(_owner.
CheckAccess
());
2550
Debug.Assert(_owner.
CheckAccess
());
2607
Debug.Assert(_owner.
CheckAccess
());
2646
Debug.Assert(_owner.
CheckAccess
());
src\Framework\System\Windows\Controls\Primitives\ToggleButton.cs (1)
305
if (
CheckAccess
())
src\Framework\System\Windows\Data\CollectionView.cs (2)
1183
if (!
CheckAccess
())
1935
if (_changeLog.Count == 0 &&
CheckAccess
())
src\Framework\System\Windows\Documents\TextServicesHost.cs (2)
341
Debug.Assert(
CheckAccess
(), "OnDispatcherShutdownFinished called on bad thread!");
374
Debug.Assert(
CheckAccess
(), "RegisterTextStore called on bad thread!");
src\Framework\System\Windows\Interop\HwndHost.cs (1)
1314
if(!
CheckAccess
())
src\Framework\System\Windows\Navigation\NavigationService.cs (14)
189
inSameThread = (((DispatcherObject)navigator).
CheckAccess
() == true);
478
this.Application.
CheckAccess
())
650
if (nw.
CheckAccess
() == true)
1797
if (Application != null && Application.
CheckAccess
())
2232
this.Application.
CheckAccess
() == true &&
2259
if (!e.Cancel && this.Application != null && this.Application.
CheckAccess
())
2417
if (this.Application != null && this.Application.
CheckAccess
())
2576
if (this.Application != null && this.Application.
CheckAccess
())
2625
if (this.Application != null && this.Application.
CheckAccess
())
2675
if (Application != null && Application.
CheckAccess
())
2775
if (this.Application != null && this.Application.
CheckAccess
())
2934
if (!e.Handled && this.Application != null && this.Application.
CheckAccess
())
3773
this.Application.
CheckAccess
() == true &&
3882
(this.Application.
CheckAccess
() == true) &&
src\Framework\System\Windows\StyleHelper.cs (1)
1597
if (freezable.
CheckAccess
())
WindowsBase (1)
Base\MS\Internal\WeakEventTable.cs (1)
393
if (
CheckAccess
())