ThemeColorProvider

StockSharp.Xaml.Charting.Themes

定义一个 Ultrachart 主题颜色提供者, 用于 XAML 控制模板的 Brushes 和颜色。 您可以执行 IThemeProvider 并传递到 ThemeManager, 为所有 UltrachartSurface 控制设置全局主题 。

继承自: BindableObject

实现: IThemeProvider

属性

AxisBandsFill
public Color AxisBandsFill { get; set; }
value = themeColorProvider.AxisBandsFill
themeColorProvider.AxisBandsFill = value

获取或设置 AxisBase 轴带填充的颜色

CursorLabelBackgroundBrush
public Brush CursorLabelBackgroundBrush { get; set; }
value = themeColorProvider.CursorLabelBackgroundBrush
themeColorProvider.CursorLabelBackgroundBrush = value

获取或设置 & # ###CursorModifier # #标签背景的刷子

CursorLabelBorderBrush
public Brush CursorLabelBorderBrush { get; set; }
value = themeColorProvider.CursorLabelBorderBrush
themeColorProvider.CursorLabelBorderBrush = value

获取或设置 & #% CursorModifier #% 标签边框的刷子

CursorLabelForeground
public Brush CursorLabelForeground { get; set; }
value = themeColorProvider.CursorLabelForeground
themeColorProvider.CursorLabelForeground = value

获取或设置 & #% CursorModifier #% 标签文本前景

CursorLineBrush
public Brush CursorLineBrush { get; set; }
value = themeColorProvider.CursorLineBrush
themeColorProvider.CursorLineBrush = value

获取或设置% CursorModifier+% 行中风的刷子

DefaultAxisMarkerAnnotationBackground
public Brush DefaultAxisMarkerAnnotationBackground { get; set; }
value = themeColorProvider.DefaultAxisMarkerAnnotationBackground
themeColorProvider.DefaultAxisMarkerAnnotationBackground = value

获取或设置 & #% AxisMarkerAnnotation\% 背景的默认刷

DefaultAxisMarkerAnnotationForeground
public Brush DefaultAxisMarkerAnnotationForeground { get; set; }
value = themeColorProvider.DefaultAxisMarkerAnnotationForeground
themeColorProvider.DefaultAxisMarkerAnnotationForeground = value

获取或设置 & #% AxisMarkerAnnotation\\\ 文本前置的默认刷

DefaultCandleDownBodyBrush
public Brush DefaultCandleDownBodyBrush { get; set; }
value = themeColorProvider.DefaultCandleDownBodyBrush
themeColorProvider.DefaultCandleDownBodyBrush = value

获取或设置 & # ###DownBodyBrush ###的默认刷子。接受 & ##SolidColorBrush ##和 ###LinearGradientBrush ####

DefaultCandleDownWickColor
public Color DefaultCandleDownWickColor { get; set; }
value = themeColorProvider.DefaultCandleDownWickColor
themeColorProvider.DefaultCandleDownWickColor = value

获取或设置 & #% DownWickColor #% 的默认颜色

DefaultCandleUpBodyBrush
public Brush DefaultCandleUpBodyBrush { get; set; }
value = themeColorProvider.DefaultCandleUpBodyBrush
themeColorProvider.DefaultCandleUpBodyBrush = value

获取或设置 & # ###UpBodyBrush ###的默认刷子。接受 & ##SolidColorBrush ##和 ###LinearGradientBrush ####

DefaultCandleUpWickColor
public Color DefaultCandleUpWickColor { get; set; }
value = themeColorProvider.DefaultCandleUpWickColor
themeColorProvider.DefaultCandleUpWickColor = value

获取或设置 & #% UpWickColor #% 的默认颜色

DefaultColorMapBrush
public Brush DefaultColorMapBrush { get; set; }
value = themeColorProvider.DefaultColorMapBrush
themeColorProvider.DefaultColorMapBrush = value

获取或设置 & #% ColorMap\\\ 的默认刷子。 接受。 渐变停止用于计算最终热签名的颜色 。

DefaultColumnFillBrush
public Brush DefaultColumnFillBrush { get; set; }
value = themeColorProvider.DefaultColumnFillBrush
themeColorProvider.DefaultColumnFillBrush = value

获取或设置 & # ###FillBrush ###的默认刷子。接受 & ##SolidColorBrush ##和 ###LinearGradientBrush ####

DefaultColumnOutlineColor
public Color DefaultColumnOutlineColor { get; set; }
value = themeColorProvider.DefaultColumnOutlineColor
themeColorProvider.DefaultColumnOutlineColor = value

获取或设置 & # #SeriesColor\\的默认颜色,用于样式列大纲.

DefaultDownBandFillColor
public Color DefaultDownBandFillColor { get; set; }
value = themeColorProvider.DefaultDownBandFillColor
themeColorProvider.DefaultDownBandFillColor = value

获取或设置 & #% BandDownColor #% 的默认颜色

DefaultDownBandLineColor
public Color DefaultDownBandLineColor { get; set; }
value = themeColorProvider.DefaultDownBandLineColor
themeColorProvider.DefaultDownBandLineColor = value

获取或设置序列1Color的默认颜色,该颜色定义了下行带颜色

DefaultLineSeriesColor
public Color DefaultLineSeriesColor { get; set; }
value = themeColorProvider.DefaultLineSeriesColor
themeColorProvider.DefaultLineSeriesColor = value

获取或设置用于定义行色的 SeriesColor 的默认颜色

DefaultMountainAreaBrush
public Brush DefaultMountainAreaBrush { get; set; }
value = themeColorProvider.DefaultMountainAreaBrush
themeColorProvider.DefaultMountainAreaBrush = value

获取或设置 & # ###AreaBrush ###的默认刷子。接受 & ##SolidColorBrush ##和 ###LinearGradientBrush ####

DefaultMountainLineColor
public Color DefaultMountainLineColor { get; set; }
value = themeColorProvider.DefaultMountainLineColor
themeColorProvider.DefaultMountainLineColor = value

获取或设置定义山地行色的 SeriesColor 的默认颜色

DefaultTextAnnotationBackground
public Brush DefaultTextAnnotationBackground { get; set; }
value = themeColorProvider.DefaultTextAnnotationBackground
themeColorProvider.DefaultTextAnnotationBackground = value

获取或设置 & #% TextAnnotation\% 背景的默认刷

DefaultTextAnnotationForeground
public Brush DefaultTextAnnotationForeground { get; set; }
value = themeColorProvider.DefaultTextAnnotationForeground
themeColorProvider.DefaultTextAnnotationForeground = value

获取或设置 & #% TextAnnotation\%% 文本前景的默认刷子

DefaultUpBandFillColor
public Color DefaultUpBandFillColor { get; set; }
value = themeColorProvider.DefaultUpBandFillColor
themeColorProvider.DefaultUpBandFillColor = value

获取或设置 & #% BandUpColor #% 的默认颜色

DefaultUpBandLineColor
public Color DefaultUpBandLineColor { get; set; }
value = themeColorProvider.DefaultUpBandLineColor
themeColorProvider.DefaultUpBandLineColor = value

获取或设置 SeriesColor 的默认颜色, 定义了带状线条颜色

GridBackgroundBrush
public Brush GridBackgroundBrush { get; set; }
value = themeColorProvider.GridBackgroundBrush
themeColorProvider.GridBackgroundBrush = value

获取或设置网格区域的背景

GridBorderBrush
public Brush GridBorderBrush { get; set; }
value = themeColorProvider.GridBorderBrush
themeColorProvider.GridBorderBrush = value

获取或设置用于网格线区域边框的刷子

LegendBackgroundBrush
public Brush LegendBackgroundBrush { get; set; }
value = themeColorProvider.LegendBackgroundBrush
themeColorProvider.LegendBackgroundBrush = value

获取或设置 UltrachartLegend 背景刷

MajorGridLinesBrush
public Brush MajorGridLinesBrush { get; set; }
value = themeColorProvider.MajorGridLinesBrush
themeColorProvider.MajorGridLinesBrush = value

获取或设置 AxisBase 主要网格线的刷子。 需要 SolidColorBrush 。

MinorGridLinesBrush
public Brush MinorGridLinesBrush { get; set; }
value = themeColorProvider.MinorGridLinesBrush
themeColorProvider.MinorGridLinesBrush = value

获取或设置 & # ###AxisBase\ # 小网格线的刷子。 期望有 & ###SolidColorBrush\ # # # # #

OverviewFillBrush
public Brush OverviewFillBrush { get; set; }
value = themeColorProvider.OverviewFillBrush
themeColorProvider.OverviewFillBrush = value

获取或设置 & #% UltrachartOverview\% 非选中区域的刷子( 填充)

RolloverLabelBackgroundBrush
public Brush RolloverLabelBackgroundBrush { get; set; }
value = themeColorProvider.RolloverLabelBackgroundBrush
themeColorProvider.RolloverLabelBackgroundBrush = value

获取或设置 & # ###RolloverModifier # #标签背景的刷子

RolloverLabelBorderBrush
public Brush RolloverLabelBorderBrush { get; set; }
value = themeColorProvider.RolloverLabelBorderBrush
themeColorProvider.RolloverLabelBorderBrush = value

获取或设置 & #% RolloverModifier #% 标签边框的刷子

RolloverLineStroke
public Brush RolloverLineStroke { get; set; }
value = themeColorProvider.RolloverLineStroke
themeColorProvider.RolloverLineStroke = value

获取或设置 RolloverModifier 垂直线的刷子

RubberBandFillBrush
public Brush RubberBandFillBrush { get; set; }
value = themeColorProvider.RubberBandFillBrush
themeColorProvider.RubberBandFillBrush = value

获取或设置 & # ###RubberBandXyZoomModifier # #拖动的刷子

RubberBandStrokeBrush
public Brush RubberBandStrokeBrush { get; set; }
value = themeColorProvider.RubberBandStrokeBrush
themeColorProvider.RubberBandStrokeBrush = value

获取或设置 & # ###RubberBandXyZoomModifier # # 拖动复刻边框的刷子

ScrollbarFillBrush
public Brush ScrollbarFillBrush { get; set; }
value = themeColorProvider.ScrollbarFillBrush
themeColorProvider.ScrollbarFillBrush = value

获取或设置 & #% UltrachartScrollbar 的取景区刷子( 填充)

TickTextBrush
public Brush TickTextBrush { get; set; }
value = themeColorProvider.TickTextBrush
themeColorProvider.TickTextBrush = value

获取或设置 & #% AxisBase\% 勾选标签的刷子

UltrachartBackground
public Brush UltrachartBackground { get; set; }
value = themeColorProvider.UltrachartBackground
themeColorProvider.UltrachartBackground = value

获取或设定整个 UltrachartSurface 的背景

方法

ApplyTheme
public void ApplyTheme(IThemeProvider newTheme)
themeColorProvider.ApplyTheme(newTheme)

将 IThemeProvider 实例适用于此实例, 覆盖所有属性, 并在必要时提高 INotifyPropertyChanged 。

newTheme
新主题实例
ApplyTheme
public void ApplyTheme(ResourceDictionary dictionary)
themeColorProvider.ApplyTheme(dictionary)

应用 ResourceDictionary 来应用 IThemeProvider 实例, 方法是搜索 IThemeProvider 实例中与属性名称相同的密钥(名称) 资源

dictionary
The ResourceDictionary source