IThemeProvider
Определяет интерфейс темы Ultrachart, которая предоставляет кисти и цвета для шаблонов элементов управления XAML. Вы можете реализовать IThemeProvider самостоятельно и перейти к ThemeManager, чтобы установить глобальную тему для всех элементов управления UltrachartSurface.
Свойства
public Color AxisBandsFill { get; set; }
value = iThemeProvider.AxisBandsFill
iThemeProvider.AxisBandsFill = value
Получает или устанавливает цвет для заполнения полос оси
public Color BoxVolumeCellFontColor { get; set; }
value = iThemeProvider.BoxVolumeCellFontColor
iThemeProvider.BoxVolumeCellFontColor = value
Получает или устанавливает цвет для .
public Color BoxVolumeHighVolColor { get; set; }
value = iThemeProvider.BoxVolumeHighVolColor
iThemeProvider.BoxVolumeHighVolColor = value
Получает или устанавливает цвет для .
public Color BoxVolumeTimeframe2Color { get; set; }
value = iThemeProvider.BoxVolumeTimeframe2Color
iThemeProvider.BoxVolumeTimeframe2Color = value
Получает или устанавливает цвет для .
public Color BoxVolumeTimeframe2FrameColor { get; set; }
value = iThemeProvider.BoxVolumeTimeframe2FrameColor
iThemeProvider.BoxVolumeTimeframe2FrameColor = value
Получает или устанавливает цвет для .
public Color BoxVolumeTimeframe3Color { get; set; }
value = iThemeProvider.BoxVolumeTimeframe3Color
iThemeProvider.BoxVolumeTimeframe3Color = value
Получает или устанавливает цвет для .
public Color ClusterProfileClusterColor { get; set; }
value = iThemeProvider.ClusterProfileClusterColor
iThemeProvider.ClusterProfileClusterColor = value
Получает или устанавливает цвет для .
public Color ClusterProfileClusterMaxColor { get; set; }
value = iThemeProvider.ClusterProfileClusterMaxColor
iThemeProvider.ClusterProfileClusterMaxColor = value
Получает или устанавливает цвет для .
public Color ClusterProfileLineColor { get; set; }
value = iThemeProvider.ClusterProfileLineColor
iThemeProvider.ClusterProfileLineColor = value
Получает или устанавливает цвет для .
public Color ClusterProfileSeparatorLineColor { get; set; }
value = iThemeProvider.ClusterProfileSeparatorLineColor
iThemeProvider.ClusterProfileSeparatorLineColor = value
Получает или устанавливает цвет для .
public Color ClusterProfileTextColor { get; set; }
value = iThemeProvider.ClusterProfileTextColor
iThemeProvider.ClusterProfileTextColor = value
Получает или устанавливает цвет для .
public Brush CursorLabelBackgroundBrush { get; set; }
value = iThemeProvider.CursorLabelBackgroundBrush
iThemeProvider.CursorLabelBackgroundBrush = value
Получает или устанавливает кисть для фона этикетки
public Brush CursorLabelBorderBrush { get; set; }
value = iThemeProvider.CursorLabelBorderBrush
iThemeProvider.CursorLabelBorderBrush = value
Получает или устанавливает кисть для границы этикетки
public Brush CursorLabelForeground { get; set; }
value = iThemeProvider.CursorLabelForeground
iThemeProvider.CursorLabelForeground = value
Получает или устанавливает кисть для текстового переднего плана этикетки
public Brush CursorLineBrush { get; set; }
value = iThemeProvider.CursorLineBrush
iThemeProvider.CursorLineBrush = value
Получает или устанавливает кисть для линии хода
public Brush DefaultAxisMarkerAnnotationBackground { get; set; }
value = iThemeProvider.DefaultAxisMarkerAnnotationBackground
iThemeProvider.DefaultAxisMarkerAnnotationBackground = value
Получает или устанавливает кисть по умолчанию для фона
public Brush DefaultAxisMarkerAnnotationForeground { get; set; }
value = iThemeProvider.DefaultAxisMarkerAnnotationForeground
iThemeProvider.DefaultAxisMarkerAnnotationForeground = value
Получает или устанавливает кисть по умолчанию для текстового фона
public Brush DefaultCandleDownBodyBrush { get; set; }
value = iThemeProvider.DefaultCandleDownBodyBrush
iThemeProvider.DefaultCandleDownBodyBrush = value
Получает или устанавливает кисть по умолчанию для DownBodyBrush. Принимает SolidColorBrush и LinearGradientBrush
public Color DefaultCandleDownWickColor { get; set; }
value = iThemeProvider.DefaultCandleDownWickColor
iThemeProvider.DefaultCandleDownWickColor = value
Получает или устанавливает цвет по умолчанию для DownWickColor
public Brush DefaultCandleUpBodyBrush { get; set; }
value = iThemeProvider.DefaultCandleUpBodyBrush
iThemeProvider.DefaultCandleUpBodyBrush = value
Получает или устанавливает кисть по умолчанию для UpBodyBrush. Принимает SolidColorBrush и LinearGradientBrush
public Color DefaultCandleUpWickColor { get; set; }
value = iThemeProvider.DefaultCandleUpWickColor
iThemeProvider.DefaultCandleUpWickColor = value
Получает или устанавливает цвет по умолчанию для UpWickColor
public Brush DefaultColorMapBrush { get; set; }
value = iThemeProvider.DefaultColorMapBrush
iThemeProvider.DefaultColorMapBrush = value
Получает или устанавливает кисть по умолчанию для ColorMap Приемы. Остановки градиента используются для вычисления цветов окончательной тепловой подписи
public Brush DefaultColumnFillBrush { get; set; }
value = iThemeProvider.DefaultColumnFillBrush
iThemeProvider.DefaultColumnFillBrush = value
Получает или устанавливает кисть по умолчанию для FillBrush. Принимает SolidColorBrush и LinearGradientBrush
public Color DefaultColumnOutlineColor { get; set; }
value = iThemeProvider.DefaultColumnOutlineColor
iThemeProvider.DefaultColumnOutlineColor = value
Получает или устанавливает цвет по умолчанию для SeriesColor, который используется для стилистики очертания колонки.
public Color DefaultDownBandFillColor { get; set; }
value = iThemeProvider.DefaultDownBandFillColor
iThemeProvider.DefaultDownBandFillColor = value
Получает или устанавливает цвет по умолчанию для BandDownColor
public Color DefaultDownBandLineColor { get; set; }
value = iThemeProvider.DefaultDownBandLineColor
iThemeProvider.DefaultDownBandLineColor = value
Получает или устанавливает цвет по умолчанию для цвета Series1Color, который определяет цвет нисходящей линии полосы.
public Color DefaultLineSeriesColor { get; set; }
value = iThemeProvider.DefaultLineSeriesColor
iThemeProvider.DefaultLineSeriesColor = value
Получает или устанавливает цвет по умолчанию для SeriesColor, который используется для определения цвета линии
public Brush DefaultMountainAreaBrush { get; set; }
value = iThemeProvider.DefaultMountainAreaBrush
iThemeProvider.DefaultMountainAreaBrush = value
Получает или устанавливает кисть по умолчанию для AreaBrush.
public Color DefaultMountainLineColor { get; set; }
value = iThemeProvider.DefaultMountainLineColor
iThemeProvider.DefaultMountainLineColor = value
Получает или устанавливает цвет по умолчанию для SeriesColor, который определяет цвет горной линии
public Brush DefaultTextAnnotationBackground { get; set; }
value = iThemeProvider.DefaultTextAnnotationBackground
iThemeProvider.DefaultTextAnnotationBackground = value
Получает или устанавливает кисть по умолчанию для фона
public Brush DefaultTextAnnotationForeground { get; set; }
value = iThemeProvider.DefaultTextAnnotationForeground
iThemeProvider.DefaultTextAnnotationForeground = value
Получает или устанавливает кисть по умолчанию для текстового переднего плана
public Color DefaultUpBandFillColor { get; set; }
value = iThemeProvider.DefaultUpBandFillColor
iThemeProvider.DefaultUpBandFillColor = value
Получает или устанавливает цвет по умолчанию для BandUpColor
public Color DefaultUpBandLineColor { get; set; }
value = iThemeProvider.DefaultUpBandLineColor
iThemeProvider.DefaultUpBandLineColor = value
Получает или устанавливает цвет по умолчанию для SeriesColor, который определяет цвет линии восходящей полосы
public Brush GridBackgroundBrush { get; set; }
value = iThemeProvider.GridBackgroundBrush
iThemeProvider.GridBackgroundBrush = value
Получает или устанавливает фон области Gridlines
public Brush GridBorderBrush { get; set; }
value = iThemeProvider.GridBorderBrush
iThemeProvider.GridBorderBrush = value
Получает или устанавливает кисть, используемую для границы зоны Gridlines
public Brush LegendBackgroundBrush { get; set; }
value = iThemeProvider.LegendBackgroundBrush
iThemeProvider.LegendBackgroundBrush = value
Получает или устанавливает кисть для фона
public Brush MajorGridLinesBrush { get; set; }
value = iThemeProvider.MajorGridLinesBrush
iThemeProvider.MajorGridLinesBrush = value
Получает или устанавливает кисть для линий AxisBase Major Grid. Ожидает SolidColorBrush
public Brush MinorGridLinesBrush { get; set; }
value = iThemeProvider.MinorGridLinesBrush
iThemeProvider.MinorGridLinesBrush = value
Получает или устанавливает кисть для линий AxisBase Minor Grid. Ожидает SolidColorBrush
public Brush OverviewFillBrush { get; set; }
value = iThemeProvider.OverviewFillBrush
iThemeProvider.OverviewFillBrush = value
Получает или устанавливает щетку (заполнение) для невыбранной области
public Brush RolloverLabelBackgroundBrush { get; set; }
value = iThemeProvider.RolloverLabelBackgroundBrush
iThemeProvider.RolloverLabelBackgroundBrush = value
Получает или устанавливает кисть для фона RolloverModifier
public Brush RolloverLabelBorderBrush { get; set; }
value = iThemeProvider.RolloverLabelBorderBrush
iThemeProvider.RolloverLabelBorderBrush = value
Получает или устанавливает кисть для границы RolloverModifier
public Brush RolloverLineStroke { get; set; }
value = iThemeProvider.RolloverLineStroke
iThemeProvider.RolloverLineStroke = value
Получает или устанавливает кисть для вертикальной линии RolloverModifier
public Brush RubberBandFillBrush { get; set; }
value = iThemeProvider.RubberBandFillBrush
iThemeProvider.RubberBandFillBrush = value
Получает или устанавливает кисть для заполнения сетчатки перетаскивания
public Brush RubberBandStrokeBrush { get; set; }
value = iThemeProvider.RubberBandStrokeBrush
iThemeProvider.RubberBandStrokeBrush = value
Получает или устанавливает кисть для границы сетчатки сопротивления
public Brush ScrollbarFillBrush { get; set; }
value = iThemeProvider.ScrollbarFillBrush
iThemeProvider.ScrollbarFillBrush = value
Получает или устанавливает кисть (заполнение) для области просмотра UltrachartScrollbar
public Brush TickTextBrush { get; set; }
value = iThemeProvider.TickTextBrush
iThemeProvider.TickTextBrush = value
Получает или устанавливает кисть для AxisBase tick-меток
public Brush UltrachartBackground { get; set; }
value = iThemeProvider.UltrachartBackground
iThemeProvider.UltrachartBackground = value
Получает или устанавливает фон всего UltrachartSurface
Методы
public void ApplyTheme(ResourceDictionary dictionary)
iThemeProvider.ApplyTheme(dictionary)
Применяется ResourceDictionary к данному экземпляру IThemeProvider, путем поиска ресурсов с теми же ключами (Именами), что и имена свойств в экземпляре IThemeProvider
- dictionary
- Источник
public void ApplyTheme(IThemeProvider newTheme)
iThemeProvider.ApplyTheme(newTheme)
Применяет экземпляр IThemeProvider к этому экземпляру, переписывая все свойства и поднимая INotifyPropertyChanged, где это необходимо
- newTheme
- Новый тематический экземпляр