SeriesInfoTemplateSelector

StockSharp.Xaml.Charting

为按照 SeriesInfo 类型选择合适的 DataTemplate 提供类

继承自: DataTemplateSelector

构造函数

SeriesInfoTemplateSelector
public SeriesInfoTemplateSelector()
seriesInfoTemplateSelector = SeriesInfoTemplateSelector()

初始化新类例 。

属性

BandSeries1Template
public DataTemplate BandSeries1Template { get; set; }
value = seriesInfoTemplateSelector.BandSeries1Template
seriesInfoTemplateSelector.BandSeries1Template = value

获取或设定 DataTemplate 用于 BandSeriesInfo 的 第一套

BandSeries2Template
public DataTemplate BandSeries2Template { get; set; }
value = seriesInfoTemplateSelector.BandSeries2Template
seriesInfoTemplateSelector.BandSeries2Template = value

获取或设置 DataTemplate 用于 BandSeriesInfo 的第二系列

BoxPlotSeriesTemplate
public DataTemplate BoxPlotSeriesTemplate { get; set; }
value = seriesInfoTemplateSelector.BoxPlotSeriesTemplate
seriesInfoTemplateSelector.BoxPlotSeriesTemplate = value

获取或设置 DataTemplate 用于 OhlcSeriesInfo

HeatmapSeriesTemplate
public DataTemplate HeatmapSeriesTemplate { get; set; }
value = seriesInfoTemplateSelector.HeatmapSeriesTemplate
seriesInfoTemplateSelector.HeatmapSeriesTemplate = value

获取或设置 DataTemplate 用于 HeatmapSeriesInfo

HlcSeriesTemplate
public DataTemplate HlcSeriesTemplate { get; set; }
value = seriesInfoTemplateSelector.HlcSeriesTemplate
seriesInfoTemplateSelector.HlcSeriesTemplate = value

获取或设置 DataTemplate 用于 OhlcSeriesInfo

OhlcSeriesTemplate
public DataTemplate OhlcSeriesTemplate { get; set; }
value = seriesInfoTemplateSelector.OhlcSeriesTemplate
seriesInfoTemplateSelector.OhlcSeriesTemplate = value

获取或设置 DataTemplate 用于 OhlcSeriesInfo

OneHundredPercentStackedSeriesTemplate
public DataTemplate OneHundredPercentStackedSeriesTemplate { get; set; }
value = seriesInfoTemplateSelector.OneHundredPercentStackedSeriesTemplate
seriesInfoTemplateSelector.OneHundredPercentStackedSeriesTemplate = value

获取或设置 DataTemplate 用于 OneHundredPercentStackedSeriesInfo

TimeframeSegmentSeriesTemplate
public DataTemplate TimeframeSegmentSeriesTemplate { get; set; }
value = seriesInfoTemplateSelector.TimeframeSegmentSeriesTemplate
seriesInfoTemplateSelector.TimeframeSegmentSeriesTemplate = value

获取或设置 DataTemplate 用于 TimeframeSegmentSeriesInfo

TransactionSeriesTemplate
public DataTemplate TransactionSeriesTemplate { get; set; }
value = seriesInfoTemplateSelector.TransactionSeriesTemplate
seriesInfoTemplateSelector.TransactionSeriesTemplate = value

获取或设置 DataTemplate 用于 TransactionSeriesInfo

方法

SelectTemplate
public override DataTemplate SelectTemplate(object item, DependencyObject container)
result = seriesInfoTemplateSelector.SelectTemplate(item, container)

当在衍生类中过度偏移时, 包含选择合适的 DataTemplate 的逻辑

item
container

字段

BandSeries1TemplateProperty
public static readonly DependencyProperty BandSeries1TemplateProperty
value = SeriesInfoTemplateSelector.BandSeries1TemplateProperty

定义 BandSeries1Template DependencyProperty 定义

BandSeries2TemplateProperty
public static readonly DependencyProperty BandSeries2TemplateProperty
value = SeriesInfoTemplateSelector.BandSeries2TemplateProperty

定义 BandSeries2Template DependencyProperty 定义

BoxPlotSeriesTemplateProperty
public static readonly DependencyProperty BoxPlotSeriesTemplateProperty
value = SeriesInfoTemplateSelector.BoxPlotSeriesTemplateProperty

定义 BoxPlotSeriesTemplate DependencyProperty 定义

HeatmapSeriesTemplateProperty
public static readonly DependencyProperty HeatmapSeriesTemplateProperty
value = SeriesInfoTemplateSelector.HeatmapSeriesTemplateProperty

定义 HeatmapSeriesTemplate DependencyProperty 定义

HlcSeriesTemplateProperty
public static readonly DependencyProperty HlcSeriesTemplateProperty
value = SeriesInfoTemplateSelector.HlcSeriesTemplateProperty

定义 HlcSeriesTemplate DependencyProperty 定义

OhlcSeriesTemplateProperty
public static readonly DependencyProperty OhlcSeriesTemplateProperty
value = SeriesInfoTemplateSelector.OhlcSeriesTemplateProperty

定义 OhlcSeriesTemplate DependencyProperty 定义

OneHundredPercentStackedSeriesTemplateProperty
public static readonly DependencyProperty OneHundredPercentStackedSeriesTemplateProperty
value = SeriesInfoTemplateSelector.OneHundredPercentStackedSeriesTemplateProperty

定义 OneHundredPercentStackedSeriesTemplate DependencyProperty 定义

TimeframeSegmentSeriesTemplateProperty
public static readonly DependencyProperty TimeframeSegmentSeriesTemplateProperty
value = SeriesInfoTemplateSelector.TimeframeSegmentSeriesTemplateProperty

定义 TimeframeSegmentSeriesTemplate DependencyProperty 定义

TransactionSeriesTemplateProperty
public static readonly DependencyProperty TransactionSeriesTemplateProperty
value = SeriesInfoTemplateSelector.TransactionSeriesTemplateProperty

定义 TransactionSeriesTemplate DependencyProperty 定义