113 references to SystemResources
PresentationFramework (113)
MS\Internal\Helper.cs (1)
120
object sysResource =
SystemResources
.FindResourceInternal(keys[k]);
MS\Win32\UxThemeWrapper.cs (2)
429
return
SystemResources
.ClassicResourceName;
440
return
SystemResources
.ClassicResourceName;
System\Windows\Application.cs (2)
318
resource =
SystemResources
.FindResourceInternal(resourceKey);
351
resource =
SystemResources
.FindResourceInternal(resourceKey);
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (8)
64
return
SystemResources
.ThemedResourceDictionaries;
82
return
SystemResources
.GenericResourceDictionaries;
96
SystemResources
.ThemedDictionaryLoaded += value;
102
SystemResources
.ThemedDictionaryLoaded -= value;
116
SystemResources
.ThemedDictionaryUnloaded += value;
122
SystemResources
.ThemedDictionaryUnloaded -= value;
136
SystemResources
.GenericDictionaryLoaded += value;
142
SystemResources
.GenericDictionaryLoaded -= value;
System\Windows\FrameworkElement.cs (4)
1106
value =
SystemResources
.FindResourceInternal(resourceKey, allowDeferredResourceReference, mustReturnDeferredResourceReference);
5545
return (
SystemResources
.SystemResourcesAreChanging || (fe.ReadInternalFlag(InternalFlags.CreatingRoot) &&
SystemResources
.SystemResourcesHaveChanged)) &&
5615
if (
SystemResources
.SystemResourcesHaveChanged)
System\Windows\FrameworkTemplate.cs (1)
577
lock (
SystemResources
.ThemeDictionaryLock)
System\Windows\Interop\HwndHost.cs (2)
980
var hwnd =
SystemResources
.GetDpiAwarenessCompatibleNotificationWindow(_hwnd);
994
SystemResources
.DelayHwndShutdown();
System\Windows\Markup\BamlRecordReader.cs (2)
4179
if (!
SystemResources
.IsSystemResourcesParsing)
4186
result =
SystemResources
.FindResourceInternal(resourceNameObject, allowDeferredResourceReference, mustReturnDeferredResourceReference);
System\Windows\ResourceDictionary.cs (4)
57
IsThemeDictionary =
SystemResources
.IsSystemResourcesParsing;
196
Uri classicResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this,
SystemResources
.ClassicResourceName);
209
Uri genericResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this,
SystemResources
.GenericResourceName);
891
return
SystemResources
.ThemeDictionaryLock;
System\Windows\StaticResourceExtension.cs (2)
305
if (!
SystemResources
.IsSystemResourcesParsing)
316
val =
SystemResources
.FindResourceInternal(ResourceKey,
System\Windows\StyleHelper.cs (2)
223
styleLookup =
SystemResources
.FindThemeStyle(dTypeKey);
228
styleLookup =
SystemResources
.FindResourceInternal(themeStyleKey);
System\Windows\SystemColors.cs (2)
2202
bool color =
SystemResources
.ClearBitArray(_colorCacheValid);
2203
bool brush =
SystemResources
.ClearBitArray(_brushCacheValid);
System\Windows\SystemParameters.cs (70)
92
if (!
SystemResources
.ClearSlot(_cacheValid, slot))
5077
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMousePresent))
5080
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMouseWheelPresent))
5093
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WorkAreaInternal))
5103
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WorkArea))
5106
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FullPrimaryScreenWidth))
5109
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FullPrimaryScreenHeight))
5112
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximizedPrimaryScreenWidth))
5115
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximizedPrimaryScreenHeight))
5118
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PrimaryScreenWidth))
5121
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PrimaryScreenHeight))
5124
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenWidth))
5127
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenHeight))
5130
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenLeft))
5133
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenTop))
5152
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PowerLineStatus))
5169
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusBorderWidth);
5172
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusHorizontalBorderHeight))
5175
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusVerticalBorderWidth))
5199
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconMetrics);
5205
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconWidth))
5208
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconHeight))
5211
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridWidth))
5214
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridHeight))
5246
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuDropAlignment);
5248
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMenuDropRightAligned))
5297
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.NonClientMetrics);
5302
changed |=
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.Border);
5305
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThinHorizontalBorderHeight))
5308
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThinVerticalBorderWidth))
5311
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.CursorWidth))
5314
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.CursorHeight))
5317
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThickHorizontalBorderHeight))
5320
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThickVerticalBorderWidth))
5323
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FixedFrameHorizontalBorderHeight))
5326
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FixedFrameVerticalBorderWidth))
5329
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarButtonWidth))
5332
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarHeight))
5335
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarThumbWidth))
5338
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconWidth))
5341
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconHeight))
5344
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridWidth))
5347
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridHeight))
5350
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximumWindowTrackWidth))
5353
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximumWindowTrackHeight))
5356
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuCheckmarkWidth))
5359
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuCheckmarkHeight))
5362
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuButtonWidth))
5365
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuButtonHeight))
5368
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowWidth))
5371
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowHeight))
5374
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedWindowWidth))
5377
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedWindowHeight))
5380
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedGridWidth))
5383
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedGridHeight))
5386
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowTrackWidth))
5389
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowTrackHeight))
5392
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionButtonWidth))
5395
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionButtonHeight))
5398
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ResizeFrameHorizontalBorderHeight))
5401
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ResizeFrameVerticalBorderWidth))
5404
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallIconWidth))
5407
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallIconHeight))
5410
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallWindowCaptionButtonWidth))
5413
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallWindowCaptionButtonHeight))
5416
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarWidth))
5419
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarButtonHeight))
5422
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionHeight))
5425
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuBarHeight))
5428
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarThumbHeight))
System\Windows\SystemResources.cs (8)
602
SystemResources
.ThemedDictionaryUnloaded?.Invoke(null, new ResourceDictionaryUnloadedEventArgs(info));
682
SystemResources
.ThemedDictionaryLoaded?.Invoke(null, new ResourceDictionaryLoadedEventArgs(ThemedDictionaryInfo));
740
SystemResources
.GenericDictionaryLoaded?.Invoke(null, new ResourceDictionaryLoadedEventArgs(GenericDictionaryInfo));
1942
lock (
SystemResources
.ThemeDictionaryLock)
1952
SystemResources
.IsSystemResourcesParsing = true;
1967
SystemResources
.IsSystemResourcesParsing = false;
1973
SystemResources
.CacheResource(key, value, false /*isTraceEnabled*/);
1986
lock (
SystemResources
.ThemeDictionaryLock)
System\Windows\ThemeDictionaryExtension.cs (3)
99
return GenerateUri(_assemblyName,
SystemResources
.ResourceDictionaries.ThemedResourceName, MS.Win32.UxThemeWrapper.ThemeName);
112
if (assemblyName.Equals(
SystemResources
.PresentationFrameworkName, StringComparison.OrdinalIgnoreCase))
247
dictionary.Source = GenerateUri(info.AssemblyName,
SystemResources
.ResourceDictionaries.ThemedResourceName, MS.Win32.UxThemeWrapper.ThemeName);