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