API Reference
Enum
ThemeToken
Semantic style tokens. Widgets only ask for tokens, never for concrete colours, so a theme (dark, light, high contrast, a brand theme) restyles everything and maps cleanly to every colour tier. Markup can use the token names directly, for example [pass]OK[/] or [muted]12:00[/].
Inheritance
- Enum
- ThemeToken
Usage
Explore 75 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 39
- Property Panel.BorderToken
- Property PresentedValue.Tone
- Property ToneRule.Tone
- Property RichColor.Role
- Extension method StatusKind.ToToken
- Method StatusKinds.ToToken
- Field ThemeToken.Accent
- Field ThemeToken.Accent2
- Field ThemeToken.Border
- Field ThemeToken.Fail
- Field ThemeToken.Focus
- Field ThemeToken.Header
- Field ThemeToken.Highlight
- Field ThemeToken.Info
- Field ThemeToken.Muted
- Field ThemeToken.Pass
- Field ThemeToken.Pending
- Field ThemeToken.Running
- Field ThemeToken.Series1
- Field ThemeToken.Series2
- Field ThemeToken.Series3
- Field ThemeToken.Series4
- Field ThemeToken.Series5
- Field ThemeToken.Series6
- Field ThemeToken.Skip
- Field ThemeToken.Subtle
- Field ThemeToken.Surface
- Field ThemeToken.SurfaceAccent
- Field ThemeToken.Text
- Field ThemeToken.Title
- Field ThemeToken.Warn
- Property BarChart.BarToken
- Property ChartItem.Token
- Property ChartSeries.Token
- Property Histogram.Token
- Property RecordItem.Tone
- Property Rule.LineToken
- Property Sparkline.Token
- Property TextBlock.Token
Accepted by parameters 36
- Method RenderContext.Style
- Extension method Panel.WithBorderToken
- Method PanelFluent.WithBorderToken
- Constructor ToneRule.ToneRule
- Method ToneRule.Above
- Method ToneRule.AtLeast
- Method ToneRule.AtMost
- Method ToneRule.Below
- Method ToneRule.Equal
- Method ToneRule.When
- Method ITheme.Resolve
- Method RichColor.FromRole
- Method RichColor.op_Implicit
- Constructor Theme.Theme
- Method Theme.Get
- Method Theme.Resolve
- Method Theme.TryParseToken
- Method Theme.With
- Extension method BarChart.WithBarToken
- Method BarChart.Add
- Method BarChartFluent.WithBarToken
- Constructor ChartItem.ChartItem
- Constructor ChartSeries.ChartSeries
- Extension method Histogram.WithToken
- Method HistogramFluent.WithToken
- Method LineChart.AddSeries
- Method RecordView.AddHeading
- Method RecordView.AddSection
- Extension method Rule.WithLineToken
- Method RuleFluent.WithLineToken
- Extension method Sparkline.WithToken
- Method SparklineFluent.WithToken
- Method StackedBar.Add
- Extension method TextBlock.WithToken
- Method TextBlock.Plain
- Method TextBlockFluent.WithToken
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from Enum
Parameters
- obj Object?
ToString 4 overloads
public String ToString(IFormatProvider? provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
public String ToString(String? format, IFormatProvider? provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format String?
- provider IFormatProvider?
Values
public const ThemeToken Focus #The focused row or control in interactive prompts, menus and forms (carries a background).
Value:
24