108 references to SystemResources
PresentationFramework (108)
src\Framework\MS\Internal\Helper.cs (1)
130object sysResource = SystemResources.FindResourceInternal(keys[k]);
src\Framework\MS\Win32\UxThemeWrapper.cs (2)
432return SystemResources.ClassicResourceName; 443return SystemResources.ClassicResourceName;
src\Framework\System\Windows\Application.cs (2)
382resource = SystemResources.FindResourceInternal(resourceKey); 415resource = SystemResources.FindResourceInternal(resourceKey);
src\Framework\System\Windows\FrameworkElement.cs (4)
1105value = SystemResources.FindResourceInternal(resourceKey, allowDeferredResourceReference, mustReturnDeferredResourceReference); 5543return (SystemResources.SystemResourcesAreChanging || (fe.ReadInternalFlag(InternalFlags.CreatingRoot) && SystemResources.SystemResourcesHaveChanged)) && 5613if (SystemResources.SystemResourcesHaveChanged)
src\Framework\System\Windows\FrameworkTemplate.cs (1)
580lock (SystemResources.ThemeDictionaryLock)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
924fvs = SystemResources.FindResourceInternal(SystemParameters.FocusVisualStyleKey) as Style; 951fvs = SystemResources.FindResourceInternal(SystemParameters.FocusVisualStyleKey) as Style;
src\Framework\System\Windows\Interop\HwndHost.cs (3)
1132/// Critical - calls Critical GetParent and <see cref="SystemResources.GetDpiAwarenessCompatibleNotificationWindow(HandleRef)"/> 1204var hwnd = SystemResources.GetDpiAwarenessCompatibleNotificationWindow(_hwnd); 1215SystemResources.DelayHwndShutdown();
src\Framework\System\Windows\Markup\BamlRecordReader.cs (2)
4221if (!SystemResources.IsSystemResourcesParsing) 4228result = SystemResources.FindResourceInternal(resourceNameObject, allowDeferredResourceReference, mustReturnDeferredResourceReference);
src\Framework\System\Windows\ResourceDictionary.cs (4)
56IsThemeDictionary = SystemResources.IsSystemResourcesParsing; 195Uri classicResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this, SystemResources.ClassicResourceName); 208Uri genericResourceUri = ThemeDictionaryExtension.GenerateFallbackUri(this, SystemResources.GenericResourceName); 890return SystemResources.ThemeDictionaryLock;
src\Framework\System\Windows\StaticResourceExtension.cs (2)
310if (!SystemResources.IsSystemResourcesParsing) 321val = SystemResources.FindResourceInternal(ResourceKey,
src\Framework\System\Windows\StyleHelper.cs (2)
223styleLookup = SystemResources.FindThemeStyle(dTypeKey); 228styleLookup = SystemResources.FindResourceInternal(themeStyleKey);
src\Framework\System\Windows\SystemColors.cs (2)
1748bool color = SystemResources.ClearBitArray(_colorCacheValid); 1749bool brush = SystemResources.ClearBitArray(_brushCacheValid);
src\Framework\System\Windows\SystemParameters.cs (70)
88if (!SystemResources.ClearSlot(_cacheValid, slot)) 5652if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IsMousePresent)) 5655if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IsMouseWheelPresent)) 5668if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.WorkAreaInternal)) 5678if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.WorkArea)) 5681if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.FullPrimaryScreenWidth)) 5684if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.FullPrimaryScreenHeight)) 5687if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MaximizedPrimaryScreenWidth)) 5690if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MaximizedPrimaryScreenHeight)) 5693if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.PrimaryScreenWidth)) 5696if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.PrimaryScreenHeight)) 5699if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenWidth)) 5702if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenHeight)) 5705if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenLeft)) 5708if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.VirtualScreenTop)) 5727if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.PowerLineStatus)) 5744bool changed = SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.FocusBorderWidth); 5747if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.FocusHorizontalBorderHeight)) 5750if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.FocusVerticalBorderWidth)) 5774bool changed = SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IconMetrics); 5780if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IconWidth)) 5783if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IconHeight)) 5786if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IconGridWidth)) 5789if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IconGridHeight)) 5821bool changed = SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MenuDropAlignment); 5823if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IsMenuDropRightAligned)) 5872bool changed = SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.NonClientMetrics); 5877changed |= SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.Border); 5880if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.ThinHorizontalBorderHeight)) 5883if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.ThinVerticalBorderWidth)) 5886if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.CursorWidth)) 5889if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.CursorHeight)) 5892if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.ThickHorizontalBorderHeight)) 5895if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.ThickVerticalBorderWidth)) 5898if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.FixedFrameHorizontalBorderHeight)) 5901if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.FixedFrameVerticalBorderWidth)) 5904if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarButtonWidth)) 5907if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarHeight)) 5910if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.HorizontalScrollBarThumbWidth)) 5913if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IconWidth)) 5916if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IconHeight)) 5919if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IconGridWidth)) 5922if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.IconGridHeight)) 5925if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MaximumWindowTrackWidth)) 5928if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MaximumWindowTrackHeight)) 5931if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MenuCheckmarkWidth)) 5934if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MenuCheckmarkHeight)) 5937if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MenuButtonWidth)) 5940if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MenuButtonHeight)) 5943if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowWidth)) 5946if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowHeight)) 5949if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedWindowWidth)) 5952if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedWindowHeight)) 5955if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedGridWidth)) 5958if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MinimizedGridHeight)) 5961if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowTrackWidth)) 5964if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MinimumWindowTrackHeight)) 5967if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionButtonWidth)) 5970if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionButtonHeight)) 5973if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.ResizeFrameHorizontalBorderHeight)) 5976if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.ResizeFrameVerticalBorderWidth)) 5979if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.SmallIconWidth)) 5982if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.SmallIconHeight)) 5985if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.SmallWindowCaptionButtonWidth)) 5988if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.SmallWindowCaptionButtonHeight)) 5991if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarWidth)) 5994if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarButtonHeight)) 5997if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.WindowCaptionHeight)) 6000if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.MenuBarHeight)) 6003if (SystemResources.ClearSlot(_cacheValid, (int)CacheSlot.VerticalScrollBarThumbHeight))
src\Framework\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)); 2000lock (SystemResources.ThemeDictionaryLock) 2010SystemResources.IsSystemResourcesParsing = true; 2025SystemResources.IsSystemResourcesParsing = false; 2031SystemResources.CacheResource(key, value, false /*isTraceEnabled*/); 2044lock (SystemResources.ThemeDictionaryLock)
src\Framework\System\Windows\ThemeDictionaryExtension.cs (3)
108return GenerateUri(_assemblyName, SystemResources.ResourceDictionaries.ThemedResourceName, MS.Win32.UxThemeWrapper.ThemeName); 121if (assemblyName.Equals(SystemResources.PresentationFrameworkName, StringComparison.OrdinalIgnoreCase)) 256dictionary.Source = GenerateUri(info.AssemblyName, SystemResources.ResourceDictionaries.ThemedResourceName, MS.Win32.UxThemeWrapper.ThemeName);