52 references to Styles
System.Windows.Forms (1)
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
172
uiFont = (Font?)uiService.
Styles
["DialogFont"];
System.Windows.Forms.Design (49)
System\ComponentModel\Design\DesignerActionPanel.cs (11)
65
Font = (Font)uiService.
Styles
["DialogFont"]!;
66
if (uiService.
Styles
["VsColorPanelGradientDark"] is Color vsColorPanelGradientDarkColor)
71
if (uiService.
Styles
["VsColorPanelGradientLight"] is Color vsColorPanelGradientLight)
76
if (uiService.
Styles
["VsColorPanelHyperLink"] is Color vsColorPanelHyperLink)
81
if (uiService.
Styles
["VsColorPanelHyperLinkPressed"] is Color vsColorPanelHyperLinkPressed)
86
if (uiService.
Styles
["VsColorPanelTitleBar"] is Color vsColorPanelTitleBar)
91
if (uiService.
Styles
["VsColorPanelTitleBarUnselected"] is Color vsColorPanelTitleBarUnselected)
96
if (uiService.
Styles
["VsColorPanelTitleBarText"] is Color vsColorPanelTitleBarText)
101
if (uiService.
Styles
["VsColorPanelBorder"] is Color vsColorPanelBorder)
106
if (uiService.
Styles
["VsColorPanelSeparator"] is Color vsColorPanelSeparator)
111
if (uiService.
Styles
["VsColorPanelText"] is Color vsColorPanelText)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (6)
122
_selectionMenuItem.DropDown.Renderer = (ToolStripProfessionalRenderer)uis.
Styles
["VsRenderer"]!;
125
_selectionMenuItem.DropDown.Font = (Font)uis.
Styles
["DialogFont"]!;
127
if (uis.
Styles
["VsColorPanelText"] is Color color)
202
Renderer = (ToolStripProfessionalRenderer)uis.
Styles
["VsRenderer"]!;
204
if (uis.
Styles
["VsColorPanelText"] is Color color)
239
Font = (Font)uis.
Styles
["DialogFont"]!;
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
167
if (uiService.
Styles
["VsColorSnaplines"] is Color snaplinesColor)
173
if (uiService.
Styles
["VsColorSnaplinesTextBaseline"] is Color snaplinesTextBaselineColor)
System\Windows\Forms\Design\ComponentTray.cs (10)
124
if (uiService.
Styles
["ArtboardBackground"] is Color backgroundColor)
130
else if (uiService.
Styles
["VsColorDesignerTray"] is Color designerTrayColor)
134
else if (uiService.
Styles
["HighlightColor"] is Color highlightColor)
147
if (uiService.
Styles
["ArtboardBackgroundText"] is Color backgroundTextColor)
151
else if (uiService.
Styles
["VsColorPanelText"] is Color panelTextColor)
157
Font = (Font)uiService.
Styles
["DialogFont"];
1401
if (uiService.
Styles
["ArtboardBackground"] is Color backgroundColor)
1407
else if (uiService.
Styles
["VsColorDesignerTray"] is Color trayColor)
1411
else if (uiService.
Styles
["HighlightColor"] is Color highlightColor)
1425
Font = (Font)uiService.
Styles
["DialogFont"];
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
58
uiFont = (Font)uiService.
Styles
["DialogFont"]!;
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (1)
30
_builderDialog.Font = (Font)uiService.
Styles
["DialogFont"]!;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
796
object? font = uiService?.
Styles
["DialogFont"];
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
407
if (uiService.
Styles
["VsColorPanelHyperLink"] is Color color1)
412
if (uiService.
Styles
["VsColorPanelHyperLinkPressed"] is Color color2)
System\Windows\Forms\Design\DesignerFrame.cs (2)
43
if (_uiService?.
Styles
["ArtboardBackground"] is Color color)
268
if (_uiService?.
Styles
["HorizontalResizeGrip"] is Color color)
System\Windows\Forms\Design\NewItemsContextMenuStrip.cs (1)
30
Renderer = (ToolStripProfessionalRenderer)uis.
Styles
["VsRenderer"]!;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
186
if (uis?.
Styles
["SmartTagText"] is Color clr)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
362
menu.Renderer = (ToolStripProfessionalRenderer)uis.
Styles
["VsRenderer"];
363
if (uis.
Styles
["VsColorPanelText"] is Color color)
System\Windows\Forms\Design\TabOrder.cs (1)
48
_tabFont = uisvc is not null && uisvc.
Styles
["DialogFont"] is Font dialogFont ? dialogFont : DefaultFont;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (3)
392
contextMenu.Renderer = (ToolStripProfessionalRenderer)uis.
Styles
["VsRenderer"];
393
contextMenu.Font = (Font)uis.
Styles
["DialogFont"];
394
if (uis.
Styles
["VsColorPanelText"] is Color color)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (5)
81
item.DropDown.Renderer = (ToolStripProfessionalRenderer)uis.
Styles
["VsRenderer"];
82
item.DropDown.Font = (Font)uis.
Styles
["DialogFont"];
168
ToolStripProfessionalRenderer renderer = (ToolStripProfessionalRenderer)uis.
Styles
["VsRenderer"];
172
Font font = (Font)uis.
Styles
["DialogFont"];
177
object panelTextObject = uis.
Styles
["VsColorPanelText"];
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (1)
17
uiServiceMock.Setup(uis => uis.
Styles
["DialogFont"]).Returns(expectedFont);
System\Windows\Forms\Design\DataGridViewAddColumnDialogTests.cs (1)
35
mockUIService.Setup(ui => ui.
Styles
["DialogFont"]).Returns(expectedFont);