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