113 references to SystemResources
PresentationFramework (113)
MS\Internal\Helper.cs (1)
110
object sysResource =
SystemResources
.FindResourceInternal(keys[k]);
MS\Win32\UxThemeWrapper.cs (2)
421
return
SystemResources
.ClassicResourceName;
432
return
SystemResources
.ClassicResourceName;
System\Windows\Application.cs (2)
278
resource =
SystemResources
.FindResourceInternal(resourceKey);
311
resource =
SystemResources
.FindResourceInternal(resourceKey);
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (8)
57
return
SystemResources
.ThemedResourceDictionaries;
75
return
SystemResources
.GenericResourceDictionaries;
89
SystemResources
.ThemedDictionaryLoaded += value;
95
SystemResources
.ThemedDictionaryLoaded -= value;
109
SystemResources
.ThemedDictionaryUnloaded += value;
115
SystemResources
.ThemedDictionaryUnloaded -= value;
129
SystemResources
.GenericDictionaryLoaded += value;
135
SystemResources
.GenericDictionaryLoaded -= value;
System\Windows\FrameworkElement.cs (4)
1084
value =
SystemResources
.FindResourceInternal(resourceKey, allowDeferredResourceReference, mustReturnDeferredResourceReference);
5532
return (
SystemResources
.SystemResourcesAreChanging || (fe.ReadInternalFlag(InternalFlags.CreatingRoot) &&
SystemResources
.SystemResourcesHaveChanged)) &&
5602
if (
SystemResources
.SystemResourcesHaveChanged)
System\Windows\FrameworkTemplate.cs (1)
564
lock (
SystemResources
.ThemeDictionaryLock)
System\Windows\Interop\HwndHost.cs (2)
973
var hwnd =
SystemResources
.GetDpiAwarenessCompatibleNotificationWindow(_hwnd);
987
SystemResources
.DelayHwndShutdown();
System\Windows\Markup\BamlRecordReader.cs (2)
4160
if (!
SystemResources
.IsSystemResourcesParsing)
4167
result =
SystemResources
.FindResourceInternal(resourceNameObject, allowDeferredResourceReference, mustReturnDeferredResourceReference);
System\Windows\ResourceDictionary.cs (4)
46
IsThemeDictionary =
SystemResources
.IsSystemResourcesParsing;
185
Uri classicResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this,
SystemResources
.ClassicResourceName);
198
Uri genericResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this,
SystemResources
.GenericResourceName);
880
return
SystemResources
.ThemeDictionaryLock;
System\Windows\StaticResourceExtension.cs (2)
295
if (!
SystemResources
.IsSystemResourcesParsing)
306
val =
SystemResources
.FindResourceInternal(ResourceKey,
System\Windows\StyleHelper.cs (2)
208
styleLookup =
SystemResources
.FindThemeStyle(dTypeKey);
213
styleLookup =
SystemResources
.FindResourceInternal(themeStyleKey);
System\Windows\SystemColors.cs (2)
2199
bool color =
SystemResources
.ClearBitArray(_colorCacheValid);
2200
bool brush =
SystemResources
.ClearBitArray(_brushCacheValid);
System\Windows\SystemParameters.cs (70)
84
if (!
SystemResources
.ClearSlot(_cacheValid, slot))
5058
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMousePresent))
5061
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMouseWheelPresent))
5074
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WorkAreaInternal))
5084
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WorkArea))
5087
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FullPrimaryScreenWidth))
5090
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FullPrimaryScreenHeight))
5093
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximizedPrimaryScreenWidth))
5096
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximizedPrimaryScreenHeight))
5099
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PrimaryScreenWidth))
5102
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PrimaryScreenHeight))
5105
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenWidth))
5108
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenHeight))
5111
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenLeft))
5114
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenTop))
5133
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PowerLineStatus))
5150
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusBorderWidth);
5153
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusHorizontalBorderHeight))
5156
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusVerticalBorderWidth))
5180
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconMetrics);
5186
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconWidth))
5189
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconHeight))
5192
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridWidth))
5195
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridHeight))
5227
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuDropAlignment);
5229
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMenuDropRightAligned))
5278
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.NonClientMetrics);
5283
changed |=
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.Border);
5286
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThinHorizontalBorderHeight))
5289
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThinVerticalBorderWidth))
5292
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.CursorWidth))
5295
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.CursorHeight))
5298
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThickHorizontalBorderHeight))
5301
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThickVerticalBorderWidth))
5304
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FixedFrameHorizontalBorderHeight))
5307
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FixedFrameVerticalBorderWidth))
5310
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarButtonWidth))
5313
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarHeight))
5316
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarThumbWidth))
5319
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconWidth))
5322
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconHeight))
5325
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridWidth))
5328
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridHeight))
5331
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximumWindowTrackWidth))
5334
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximumWindowTrackHeight))
5337
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuCheckmarkWidth))
5340
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuCheckmarkHeight))
5343
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuButtonWidth))
5346
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuButtonHeight))
5349
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowWidth))
5352
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowHeight))
5355
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedWindowWidth))
5358
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedWindowHeight))
5361
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedGridWidth))
5364
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedGridHeight))
5367
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowTrackWidth))
5370
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowTrackHeight))
5373
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionButtonWidth))
5376
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionButtonHeight))
5379
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ResizeFrameHorizontalBorderHeight))
5382
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ResizeFrameVerticalBorderWidth))
5385
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallIconWidth))
5388
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallIconHeight))
5391
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallWindowCaptionButtonWidth))
5394
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallWindowCaptionButtonHeight))
5397
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarWidth))
5400
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarButtonHeight))
5403
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionHeight))
5406
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuBarHeight))
5409
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarThumbHeight))
System\Windows\SystemResources.cs (8)
588
SystemResources
.ThemedDictionaryUnloaded?.Invoke(null, new ResourceDictionaryUnloadedEventArgs(info));
668
SystemResources
.ThemedDictionaryLoaded?.Invoke(null, new ResourceDictionaryLoadedEventArgs(ThemedDictionaryInfo));
726
SystemResources
.GenericDictionaryLoaded?.Invoke(null, new ResourceDictionaryLoadedEventArgs(GenericDictionaryInfo));
1915
lock (
SystemResources
.ThemeDictionaryLock)
1925
SystemResources
.IsSystemResourcesParsing = true;
1940
SystemResources
.IsSystemResourcesParsing = false;
1946
SystemResources
.CacheResource(key, value, false /*isTraceEnabled*/);
1959
lock (
SystemResources
.ThemeDictionaryLock)
System\Windows\ThemeDictionaryExtension.cs (3)
92
return GenerateUri(_assemblyName,
SystemResources
.ResourceDictionaries.ThemedResourceName, MS.Win32.UxThemeWrapper.ThemeName);
105
if (assemblyName.Equals(
SystemResources
.PresentationFrameworkName, StringComparison.OrdinalIgnoreCase))
246
dictionary.Source = GenerateUri(info.AssemblyName,
SystemResources
.ResourceDictionaries.ThemedResourceName, MS.Win32.UxThemeWrapper.ThemeName);