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