113 references to SystemResources
PresentationFramework (113)
MS\Internal\Helper.cs (1)
111
object sysResource =
SystemResources
.FindResourceInternal(keys[k]);
MS\Win32\UxThemeWrapper.cs (2)
422
return
SystemResources
.ClassicResourceName;
433
return
SystemResources
.ClassicResourceName;
System\Windows\Application.cs (2)
279
resource =
SystemResources
.FindResourceInternal(resourceKey);
312
resource =
SystemResources
.FindResourceInternal(resourceKey);
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (8)
58
return
SystemResources
.ThemedResourceDictionaries;
76
return
SystemResources
.GenericResourceDictionaries;
90
SystemResources
.ThemedDictionaryLoaded += value;
96
SystemResources
.ThemedDictionaryLoaded -= value;
110
SystemResources
.ThemedDictionaryUnloaded += value;
116
SystemResources
.ThemedDictionaryUnloaded -= value;
130
SystemResources
.GenericDictionaryLoaded += value;
136
SystemResources
.GenericDictionaryLoaded -= value;
System\Windows\FrameworkElement.cs (4)
1088
value =
SystemResources
.FindResourceInternal(resourceKey, allowDeferredResourceReference, mustReturnDeferredResourceReference);
5539
return (
SystemResources
.SystemResourcesAreChanging || (fe.ReadInternalFlag(InternalFlags.CreatingRoot) &&
SystemResources
.SystemResourcesHaveChanged)) &&
5609
if (
SystemResources
.SystemResourcesHaveChanged)
System\Windows\FrameworkTemplate.cs (1)
569
lock (
SystemResources
.ThemeDictionaryLock)
System\Windows\Interop\HwndHost.cs (2)
974
var hwnd =
SystemResources
.GetDpiAwarenessCompatibleNotificationWindow(_hwnd);
988
SystemResources
.DelayHwndShutdown();
System\Windows\Markup\BamlRecordReader.cs (2)
4167
if (!
SystemResources
.IsSystemResourcesParsing)
4174
result =
SystemResources
.FindResourceInternal(resourceNameObject, allowDeferredResourceReference, mustReturnDeferredResourceReference);
System\Windows\ResourceDictionary.cs (4)
47
IsThemeDictionary =
SystemResources
.IsSystemResourcesParsing;
186
Uri classicResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this,
SystemResources
.ClassicResourceName);
199
Uri genericResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this,
SystemResources
.GenericResourceName);
881
return
SystemResources
.ThemeDictionaryLock;
System\Windows\StaticResourceExtension.cs (2)
296
if (!
SystemResources
.IsSystemResourcesParsing)
307
val =
SystemResources
.FindResourceInternal(ResourceKey,
System\Windows\StyleHelper.cs (2)
209
styleLookup =
SystemResources
.FindThemeStyle(dTypeKey);
214
styleLookup =
SystemResources
.FindResourceInternal(themeStyleKey);
System\Windows\SystemColors.cs (2)
2200
bool color =
SystemResources
.ClearBitArray(_colorCacheValid);
2201
bool brush =
SystemResources
.ClearBitArray(_brushCacheValid);
System\Windows\SystemParameters.cs (70)
85
if (!
SystemResources
.ClearSlot(_cacheValid, slot))
5059
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMousePresent))
5062
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMouseWheelPresent))
5075
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WorkAreaInternal))
5085
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WorkArea))
5088
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FullPrimaryScreenWidth))
5091
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FullPrimaryScreenHeight))
5094
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximizedPrimaryScreenWidth))
5097
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximizedPrimaryScreenHeight))
5100
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PrimaryScreenWidth))
5103
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PrimaryScreenHeight))
5106
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenWidth))
5109
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenHeight))
5112
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenLeft))
5115
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenTop))
5134
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.PowerLineStatus))
5151
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusBorderWidth);
5154
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusHorizontalBorderHeight))
5157
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FocusVerticalBorderWidth))
5181
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconMetrics);
5187
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconWidth))
5190
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconHeight))
5193
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridWidth))
5196
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridHeight))
5228
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuDropAlignment);
5230
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IsMenuDropRightAligned))
5279
bool changed =
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.NonClientMetrics);
5284
changed |=
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.Border);
5287
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThinHorizontalBorderHeight))
5290
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThinVerticalBorderWidth))
5293
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.CursorWidth))
5296
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.CursorHeight))
5299
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThickHorizontalBorderHeight))
5302
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ThickVerticalBorderWidth))
5305
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FixedFrameHorizontalBorderHeight))
5308
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.FixedFrameVerticalBorderWidth))
5311
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarButtonWidth))
5314
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarHeight))
5317
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarThumbWidth))
5320
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconWidth))
5323
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconHeight))
5326
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridWidth))
5329
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.IconGridHeight))
5332
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximumWindowTrackWidth))
5335
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MaximumWindowTrackHeight))
5338
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuCheckmarkWidth))
5341
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuCheckmarkHeight))
5344
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuButtonWidth))
5347
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuButtonHeight))
5350
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowWidth))
5353
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowHeight))
5356
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedWindowWidth))
5359
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedWindowHeight))
5362
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedGridWidth))
5365
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedGridHeight))
5368
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowTrackWidth))
5371
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowTrackHeight))
5374
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionButtonWidth))
5377
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionButtonHeight))
5380
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ResizeFrameHorizontalBorderHeight))
5383
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.ResizeFrameVerticalBorderWidth))
5386
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallIconWidth))
5389
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallIconHeight))
5392
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallWindowCaptionButtonWidth))
5395
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.SmallWindowCaptionButtonHeight))
5398
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarWidth))
5401
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarButtonHeight))
5404
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionHeight))
5407
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.MenuBarHeight))
5410
if (
SystemResources
.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarThumbHeight))
System\Windows\SystemResources.cs (8)
592
SystemResources
.ThemedDictionaryUnloaded?.Invoke(null, new ResourceDictionaryUnloadedEventArgs(info));
672
SystemResources
.ThemedDictionaryLoaded?.Invoke(null, new ResourceDictionaryLoadedEventArgs(ThemedDictionaryInfo));
730
SystemResources
.GenericDictionaryLoaded?.Invoke(null, new ResourceDictionaryLoadedEventArgs(GenericDictionaryInfo));
1922
lock (
SystemResources
.ThemeDictionaryLock)
1932
SystemResources
.IsSystemResourcesParsing = true;
1947
SystemResources
.IsSystemResourcesParsing = false;
1953
SystemResources
.CacheResource(key, value, false /*isTraceEnabled*/);
1966
lock (
SystemResources
.ThemeDictionaryLock)
System\Windows\ThemeDictionaryExtension.cs (3)
93
return GenerateUri(_assemblyName,
SystemResources
.ResourceDictionaries.ThemedResourceName, MS.Win32.UxThemeWrapper.ThemeName);
106
if (assemblyName.Equals(
SystemResources
.PresentationFrameworkName, StringComparison.OrdinalIgnoreCase))
247
dictionary.Source = GenerateUri(info.AssemblyName,
SystemResources
.ResourceDictionaries.ThemedResourceName, MS.Win32.UxThemeWrapper.ThemeName);