108 references to SystemResources
PresentationFramework (108)
src\Framework\MS\Internal\Helper.cs (1)
130
object sysResource =
SystemResources
.FindResourceInternal(keys[k]);
src\Framework\MS\Win32\UxThemeWrapper.cs (2)
432
return
SystemResources
.ClassicResourceName;
443
return
SystemResources
.ClassicResourceName;
src\Framework\System\Windows\Application.cs (2)
382
resource =
SystemResources
.FindResourceInternal(resourceKey);
415
resource =
SystemResources
.FindResourceInternal(resourceKey);
src\Framework\System\Windows\FrameworkElement.cs (4)
1105
value =
SystemResources
.FindResourceInternal(resourceKey, allowDeferredResourceReference, mustReturnDeferredResourceReference);
5543
return (
SystemResources
.SystemResourcesAreChanging || (fe.ReadInternalFlag(InternalFlags.CreatingRoot) &&
SystemResources
.SystemResourcesHaveChanged)) &&
5613
if (
SystemResources
.SystemResourcesHaveChanged)
src\Framework\System\Windows\FrameworkTemplate.cs (1)
580
lock (
SystemResources
.ThemeDictionaryLock)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
924
fvs =
SystemResources
.FindResourceInternal(SystemParameters.FocusVisualStyleKey) as Style;
951
fvs =
SystemResources
.FindResourceInternal(SystemParameters.FocusVisualStyleKey) as Style;
src\Framework\System\Windows\Interop\HwndHost.cs (3)
1132
/// Critical - calls Critical GetParent and <see cref="
SystemResources
.GetDpiAwarenessCompatibleNotificationWindow(HandleRef)"/>
1204
var hwnd =
SystemResources
.GetDpiAwarenessCompatibleNotificationWindow(_hwnd);
1215
SystemResources
.DelayHwndShutdown();
src\Framework\System\Windows\Markup\BamlRecordReader.cs (2)
4221
if (!
SystemResources
.IsSystemResourcesParsing)
4228
result =
SystemResources
.FindResourceInternal(resourceNameObject, allowDeferredResourceReference, mustReturnDeferredResourceReference);
src\Framework\System\Windows\ResourceDictionary.cs (4)
56
IsThemeDictionary =
SystemResources
.IsSystemResourcesParsing;
195
Uri classicResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this,
SystemResources
.ClassicResourceName);
208
Uri genericResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this,
SystemResources
.GenericResourceName);
890
return
SystemResources
.ThemeDictionaryLock;
src\Framework\System\Windows\StaticResourceExtension.cs (2)
310
if (!
SystemResources
.IsSystemResourcesParsing)
321
val =
SystemResources
.FindResourceInternal(ResourceKey,
src\Framework\System\Windows\StyleHelper.cs (2)
223
styleLookup =
SystemResources
.FindThemeStyle(dTypeKey);
228
styleLookup =
SystemResources
.FindResourceInternal(themeStyleKey);
src\Framework\System\Windows\SystemColors.cs (2)
1748
bool color =
SystemResources
.ClearBitArray(_colorCacheValid);
1749
bool brush =
SystemResources
.ClearBitArray(_brushCacheValid);
src\Framework\System\Windows\SystemParameters.cs (70)
88
if (!
SystemResources
.ClearSlot(_cacheValid, slot))
5652
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMousePresent))
5655
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMouseWheelPresent))
5668
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WorkAreaInternal))
5678
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WorkArea))
5681
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FullPrimaryScreenWidth))
5684
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FullPrimaryScreenHeight))
5687
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximizedPrimaryScreenWidth))
5690
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximizedPrimaryScreenHeight))
5693
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PrimaryScreenWidth))
5696
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PrimaryScreenHeight))
5699
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenWidth))
5702
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenHeight))
5705
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenLeft))
5708
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenTop))
5727
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PowerLineStatus))
5744
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusBorderWidth);
5747
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusHorizontalBorderHeight))
5750
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusVerticalBorderWidth))
5774
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconMetrics);
5780
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconWidth))
5783
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconHeight))
5786
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridWidth))
5789
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridHeight))
5821
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuDropAlignment);
5823
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMenuDropRightAligned))
5872
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.NonClientMetrics);
5877
changed |=
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.Border);
5880
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThinHorizontalBorderHeight))
5883
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThinVerticalBorderWidth))
5886
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.CursorWidth))
5889
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.CursorHeight))
5892
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThickHorizontalBorderHeight))
5895
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThickVerticalBorderWidth))
5898
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FixedFrameHorizontalBorderHeight))
5901
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FixedFrameVerticalBorderWidth))
5904
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarButtonWidth))
5907
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarHeight))
5910
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarThumbWidth))
5913
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconWidth))
5916
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconHeight))
5919
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridWidth))
5922
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridHeight))
5925
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximumWindowTrackWidth))
5928
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximumWindowTrackHeight))
5931
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuCheckmarkWidth))
5934
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuCheckmarkHeight))
5937
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuButtonWidth))
5940
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuButtonHeight))
5943
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowWidth))
5946
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowHeight))
5949
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedWindowWidth))
5952
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedWindowHeight))
5955
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedGridWidth))
5958
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedGridHeight))
5961
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowTrackWidth))
5964
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowTrackHeight))
5967
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionButtonWidth))
5970
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionButtonHeight))
5973
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ResizeFrameHorizontalBorderHeight))
5976
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ResizeFrameVerticalBorderWidth))
5979
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallIconWidth))
5982
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallIconHeight))
5985
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallWindowCaptionButtonWidth))
5988
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallWindowCaptionButtonHeight))
5991
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarWidth))
5994
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarButtonHeight))
5997
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionHeight))
6000
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuBarHeight))
6003
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarThumbHeight))
src\Framework\System\Windows\SystemResources.cs (8)
601
SystemResources
.ThemedDictionaryUnloaded?.Invoke(null, new ResourceDictionaryUnloadedEventArgs(info));
681
SystemResources
.ThemedDictionaryLoaded?.Invoke(null, new ResourceDictionaryLoadedEventArgs(ThemedDictionaryInfo));
739
SystemResources
.GenericDictionaryLoaded?.Invoke(null, new ResourceDictionaryLoadedEventArgs(GenericDictionaryInfo));
2000
lock (
SystemResources
.ThemeDictionaryLock)
2010
SystemResources
.IsSystemResourcesParsing = true;
2025
SystemResources
.IsSystemResourcesParsing = false;
2031
SystemResources
.CacheResource(key, value, false /*isTraceEnabled*/);
2044
lock (
SystemResources
.ThemeDictionaryLock)
src\Framework\System\Windows\ThemeDictionaryExtension.cs (3)
108
return GenerateUri(_assemblyName,
SystemResources
.ResourceDictionaries.ThemedResourceName, MS.Win32.UxThemeWrapper.ThemeName);
121
if (assemblyName.Equals(
SystemResources
.PresentationFrameworkName, StringComparison.OrdinalIgnoreCase))
256
dictionary.Source = GenerateUri(info.AssemblyName,
SystemResources
.ResourceDictionaries.ThemedResourceName, MS.Win32.UxThemeWrapper.ThemeName);