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