194 references to SystemColors
PresentationFramework (149)
src\Framework\MS\Internal\Ink\HighContrastHelper.cs (1)
202Color windowTextColor = SystemColors.WindowTextColor;
src\Framework\System\Windows\Controls\Control.cs (1)
147new FrameworkPropertyMetadata(SystemColors.ControlTextBrush,
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (1)
389new FrameworkPropertyMetadata(SystemColors.ControlTextBrush, FrameworkPropertyMetadataOptions.Inherits, DataGridColumn.NotifyPropertyChangeForRefreshContent));
src\Framework\System\Windows\Controls\InkCanvas.cs (2)
121new DynamicResourceExtension(SystemColors.WindowBrushKey))); 201_rtiHighContrastCallback.TurnHighContrastOn(SystemColors.WindowTextColor);
src\Framework\System\Windows\Controls\InkPresenter.cs (1)
62_contrastCallback.TurnHighContrastOn(SystemColors.WindowTextColor);
src\Framework\System\Windows\Controls\MenuItem.cs (1)
178ForegroundProperty.OverrideMetadata(typeof(MenuItem), new FrameworkPropertyMetadata(SystemColors.MenuTextBrush));
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1966Brush selectionBrush = new SolidColorBrush(SystemColors.HighlightColor); 1976Brush selectionTextBrush = new SolidColorBrush(SystemColors.HighlightTextColor);
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2780corner.SetResourceReference(Rectangle.FillProperty, SystemColors.ControlBrushKey);
src\Framework\System\Windows\Controls\ToolTip.cs (1)
41BackgroundProperty.OverrideMetadata(typeof(ToolTip), new FrameworkPropertyMetadata(SystemColors.InfoBrush));
src\Framework\System\windows\Documents\SelectionHighlightInfo.cs (3)
35_objectMaskBrush = new SolidColorBrush(SystemColors.HighlightColor); 56return SystemColors.HighlightTextBrush; 67return SystemColors.HighlightBrush;
src\Framework\System\windows\Documents\TextSelection.cs (1)
1644backgroundColor = SystemColors.WindowColor;
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
3111keyObject = typeof(SystemColors);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (2)
1376_hwndSource.CompositionTarget.BackgroundColor = SystemColors.WindowColor; 1564_hwndSource.CompositionTarget.BackgroundColor = SystemColors.WindowColor;
src\Framework\System\Windows\SystemColors.cs (4)
1182return SystemColors.HighlightBrush; 1186return SystemColors.ControlBrush; 1203return SystemColors.HighlightTextBrush; 1207return SystemColors.ControlTextBrush;
src\Framework\System\Windows\SystemKeyConverter.cs (1)
180return typeof(SystemColors);
src\Framework\System\Windows\SystemResourceKey.cs (124)
450return SystemColors.ActiveBorderBrush; 453return SystemColors.ActiveCaptionBrush; 456return SystemColors.ActiveCaptionTextBrush; 459return SystemColors.AppWorkspaceBrush; 462return SystemColors.ControlBrush; 465return SystemColors.ControlDarkBrush; 468return SystemColors.ControlDarkDarkBrush; 471return SystemColors.ControlLightBrush; 474return SystemColors.ControlLightLightBrush; 477return SystemColors.ControlTextBrush; 480return SystemColors.DesktopBrush; 483return SystemColors.GradientActiveCaptionBrush; 486return SystemColors.GradientInactiveCaptionBrush; 489return SystemColors.GrayTextBrush; 492return SystemColors.HighlightBrush; 495return SystemColors.HighlightTextBrush; 498return SystemColors.HotTrackBrush; 501return SystemColors.InactiveBorderBrush; 504return SystemColors.InactiveCaptionBrush; 507return SystemColors.InactiveCaptionTextBrush; 510return SystemColors.InfoBrush; 513return SystemColors.InfoTextBrush; 516return SystemColors.MenuBrush; 519return SystemColors.MenuBarBrush; 522return SystemColors.MenuHighlightBrush; 525return SystemColors.MenuTextBrush; 528return SystemColors.ScrollBarBrush; 531return SystemColors.WindowBrush; 534return SystemColors.WindowFrameBrush; 537return SystemColors.WindowTextBrush; 540return SystemColors.InactiveSelectionHighlightBrush; 543return SystemColors.InactiveSelectionHighlightTextBrush; 546return SystemColors.ActiveBorderColor; 549return SystemColors.ActiveCaptionColor; 552return SystemColors.ActiveCaptionTextColor; 555return SystemColors.AppWorkspaceColor; 558return SystemColors.ControlColor; 561return SystemColors.ControlDarkColor; 564return SystemColors.ControlDarkDarkColor; 567return SystemColors.ControlLightColor; 570return SystemColors.ControlLightLightColor; 573return SystemColors.ControlTextColor; 576return SystemColors.DesktopColor; 579return SystemColors.GradientActiveCaptionColor; 582return SystemColors.GradientInactiveCaptionColor; 585return SystemColors.GrayTextColor; 588return SystemColors.HighlightColor; 591return SystemColors.HighlightTextColor; 594return SystemColors.HotTrackColor; 597return SystemColors.InactiveBorderColor; 600return SystemColors.InactiveCaptionColor; 603return SystemColors.InactiveCaptionTextColor; 606return SystemColors.InfoColor; 609return SystemColors.InfoTextColor; 612return SystemColors.MenuColor; 615return SystemColors.MenuBarColor; 618return SystemColors.MenuHighlightColor; 621return SystemColors.MenuTextColor; 624return SystemColors.ScrollBarColor; 627return SystemColors.WindowColor; 630return SystemColors.WindowFrameColor; 633return SystemColors.WindowTextColor; 1092return SystemColors.ActiveBorderBrushKey; 1095return SystemColors.ActiveCaptionBrushKey; 1098return SystemColors.ActiveCaptionTextBrushKey; 1101return SystemColors.AppWorkspaceBrushKey; 1104return SystemColors.ControlBrushKey; 1107return SystemColors.ControlDarkBrushKey; 1110return SystemColors.ControlDarkDarkBrushKey; 1113return SystemColors.ControlLightBrushKey; 1116return SystemColors.ControlLightLightBrushKey; 1119return SystemColors.ControlTextBrushKey; 1122return SystemColors.DesktopBrushKey; 1125return SystemColors.GradientActiveCaptionBrushKey; 1128return SystemColors.GradientInactiveCaptionBrushKey; 1131return SystemColors.GrayTextBrushKey; 1134return SystemColors.HighlightBrushKey; 1137return SystemColors.HighlightTextBrushKey; 1140return SystemColors.HotTrackBrushKey; 1143return SystemColors.InactiveBorderBrushKey; 1146return SystemColors.InactiveCaptionBrushKey; 1149return SystemColors.InactiveCaptionTextBrushKey; 1152return SystemColors.InfoBrushKey; 1155return SystemColors.InfoTextBrushKey; 1158return SystemColors.MenuBrushKey; 1161return SystemColors.MenuBarBrushKey; 1164return SystemColors.MenuHighlightBrushKey; 1167return SystemColors.MenuTextBrushKey; 1170return SystemColors.ScrollBarBrushKey; 1173return SystemColors.WindowBrushKey; 1176return SystemColors.WindowFrameBrushKey; 1179return SystemColors.WindowTextBrushKey; 1182return SystemColors.InactiveSelectionHighlightBrushKey; 1185return SystemColors.InactiveSelectionHighlightTextBrushKey; 1188return SystemColors.ActiveBorderColorKey; 1191return SystemColors.ActiveCaptionColorKey; 1194return SystemColors.ActiveCaptionTextColorKey; 1197return SystemColors.AppWorkspaceColorKey; 1200return SystemColors.ControlColorKey; 1203return SystemColors.ControlDarkColorKey; 1206return SystemColors.ControlDarkDarkColorKey; 1209return SystemColors.ControlLightColorKey; 1212return SystemColors.ControlLightLightColorKey; 1215return SystemColors.ControlTextColorKey; 1218return SystemColors.DesktopColorKey; 1221return SystemColors.GradientActiveCaptionColorKey; 1224return SystemColors.GradientInactiveCaptionColorKey; 1227return SystemColors.GrayTextColorKey; 1230return SystemColors.HighlightColorKey; 1233return SystemColors.HighlightTextColorKey; 1236return SystemColors.HotTrackColorKey; 1239return SystemColors.InactiveBorderColorKey; 1242return SystemColors.InactiveCaptionColorKey; 1245return SystemColors.InactiveCaptionTextColorKey; 1248return SystemColors.InfoColorKey; 1251return SystemColors.InfoTextColorKey; 1254return SystemColors.MenuColorKey; 1257return SystemColors.MenuBarColorKey; 1260return SystemColors.MenuHighlightColorKey; 1263return SystemColors.MenuTextColorKey; 1266return SystemColors.ScrollBarColorKey; 1269return SystemColors.WindowColorKey; 1272return SystemColors.WindowFrameColorKey; 1275return SystemColors.WindowTextColorKey;
src\Framework\System\Windows\SystemResources.cs (2)
1458SystemColors.InvalidateCache(); 1469if (SystemColors.InvalidateCache())
PresentationFramework.Classic (17)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (10)
421controlBrush != null && (controlColor = controlBrush.Color) != SystemColors.ControlColor && controlColor.A > 0x00) 444darkDarkColor.R = (byte)((darkColor.R + SystemColors.WindowFrameColor.R) / 2); 445darkDarkColor.G = (byte)((darkColor.G + SystemColors.WindowFrameColor.G) / 2); 446darkDarkColor.B = (byte)((darkColor.B + SystemColors.WindowFrameColor.B) / 2); 447darkDarkColor.A = (byte)((darkColor.A + SystemColors.WindowFrameColor.A) / 2); 770DrawBorder(SystemColors.WindowFrameBrush, singleThickness, drawingContext, ref bounds); 1354return _brushCache != null ? _brushCache.LightBrush : SystemColors.ControlLightBrush; 1363return _brushCache != null ? _brushCache.LightLightBrush : SystemColors.ControlLightLightBrush; 1372return _brushCache != null ? _brushCache.DarkBrush : SystemColors.ControlDarkBrush; 1381return _brushCache != null ? _brushCache.DarkDarkBrush : SystemColors.ControlDarkDarkBrush;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (7)
42SetResourceReference(ControlBrushProperty, SystemColors.ControlBrushKey); 57Brush light = SystemColors.ControlLightBrush; 58Brush dark = SystemColors.ControlDarkBrush; 78darkDarkRight = SystemColors.ControlDarkDarkBrush; 96darkDarkBottom = SystemColors.ControlDarkDarkBrush; 193? SystemColors.ControlTextBrush : SystemColors.GrayTextBrush;
System.Activities.Presentation (28)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
270this.Foreground = new SolidColorBrush(SystemColors.ControlTextColor);
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (3)
126this.textBox.Foreground = SystemColors.GrayTextBrush; 145inputTextBox.Foreground = SystemColors.ControlTextBrush; 157inputTextBox.Foreground = SystemColors.GrayTextBrush;
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (2)
413if (this.BorderBrush != SystemColors.GrayTextBrush) 415this.BorderBrush = SystemColors.GrayTextBrush;
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
96text.Foreground = SystemColors.WindowBrush;
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerColors.cs (19)
172if (SystemColors.ControlColor == Colors.Black && SystemColors.ControlTextColor == Colors.White) 177if (SystemColors.ControlColor == Colors.White && SystemColors.ControlTextColor == Colors.Black) 182if (SystemColors.ControlColor == Colors.Black && SystemColors.ControlTextColor == Color.FromArgb(0xff, 0x00, 0xff, 0x00)) 631resources[WorkflowDesignerColors.PropertyInspectorTextBrushKey] = new SolidColorBrush(SystemColors.ControlTextColor); 632resources[WorkflowDesignerColors.PropertyInspectorBackgroundBrushKey] = new SolidColorBrush(SystemColors.WindowColor); 633resources[WorkflowDesignerColors.PropertyInspectorBorderBrushKey] = new SolidColorBrush(SystemColors.ControlDarkColor); 634resources[WorkflowDesignerColors.PropertyInspectorPaneBrushKey] = new SolidColorBrush(SystemColors.ControlColor); 635resources[WorkflowDesignerColors.PropertyInspectorSelectedBackgroundBrushKey] = new SolidColorBrush(SystemColors.HighlightColor); 636resources[WorkflowDesignerColors.PropertyInspectorSelectedForegroundBrushKey] = new SolidColorBrush(SystemColors.HighlightTextColor); 637resources[WorkflowDesignerColors.PropertyInspectorToolBarItemHoverBackgroundBrushKey] = new SolidColorBrush(SystemColors.GradientActiveCaptionColor); 638resources[WorkflowDesignerColors.PropertyInspectorToolBarItemHoverBorderBrushKey] = new SolidColorBrush(SystemColors.ActiveCaptionTextColor); 639resources[WorkflowDesignerColors.PropertyInspectorToolBarItemSelectedBackgroundBrushKey] = new SolidColorBrush(SystemColors.GradientInactiveCaptionColor); 640resources[WorkflowDesignerColors.PropertyInspectorToolBarItemSelectedBorderBrushKey] = new SolidColorBrush(SystemColors.ActiveCaptionTextColor); 641resources[WorkflowDesignerColors.PropertyInspectorToolBarBackgroundBrushKey] = new SolidColorBrush(SystemColors.ControlColor); 642resources[WorkflowDesignerColors.PropertyInspectorToolBarSeparatorBrushKey] = new SolidColorBrush(SystemColors.ControlDarkColor); 643resources[WorkflowDesignerColors.PropertyInspectorToolBarTextBoxBorderBrushKey] = new SolidColorBrush(SystemColors.ControlDarkDarkColor);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
78this.text.Foreground = new SolidColorBrush(SystemColors.GrayTextColor);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
94text.Foreground = new SolidColorBrush(SystemColors.GrayTextColor);