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