CandleChartWithTimeframeView

StockSharp.Xaml.Charting.Maui

Reusable composite control: a ChartView candlestick surface with a horizontal timeframe-selector strip above it. Brand-neutral and data-source agnostic — the host feeds Candles and, when the user picks a timeframe, reloads them at the chosen resolution via TimeframeSelectedCommand. Intended for reuse across MAUI apps (trading terminal, designer, backoffice) that need a candle chart with a timeframe switch without re-implementing the chrome each time. The underlying Chart is exposed for advanced hosts that add indicators, annotations or drawing tools.

Inherits: ContentView

Properties

ActiveColor
public Color ActiveColor { get; set; }
value = candleChartWithTimeframeView.ActiveColor
candleChartWithTimeframeView.ActiveColor = value

Text colour of the active timeframe entry.

Candles
public CandleDataSeries Candles { get; set; }
value = candleChartWithTimeframeView.Candles
candleChartWithTimeframeView.Candles = value

Candle data rendered by the chart. Fed (and live-updated) by the host.

Chart
public ChartView Chart { get; }
value = candleChartWithTimeframeView.Chart

The underlying chart surface, exposed for advanced hosts that add indicators (String)), annotations or drawing tools on top of the shared chrome.

DefaultTimeframes
public static IReadOnlyList<ChartTimeframe> DefaultTimeframes { get; }
value = CandleChartWithTimeframeView.DefaultTimeframes

Default strip: M1 / M5 / M15 / H1 / H4 / D1.

DrawStyle
public ChartDrawStyle DrawStyle { get; set; }
value = candleChartWithTimeframeView.DrawStyle
candleChartWithTimeframeView.DrawStyle = value

The main-series draw style (candlestick / OHLC / line / area).

InactiveColor
public Color InactiveColor { get; set; }
value = candleChartWithTimeframeView.InactiveColor
candleChartWithTimeframeView.InactiveColor = value

Text colour of the inactive timeframe entries.

SelectedTimeframeMinutes
public int SelectedTimeframeMinutes { get; set; }
value = candleChartWithTimeframeView.SelectedTimeframeMinutes
candleChartWithTimeframeView.SelectedTimeframeMinutes = value

The currently selected timeframe, in minutes. Two-way.

ShowCrosshair
public bool ShowCrosshair { get; set; }
value = candleChartWithTimeframeView.ShowCrosshair
candleChartWithTimeframeView.ShowCrosshair = value

Whether the crosshair is shown.

ShowLegend
public bool ShowLegend { get; set; }
value = candleChartWithTimeframeView.ShowLegend
candleChartWithTimeframeView.ShowLegend = value

Whether the legend is shown.

ShowVolume
public bool ShowVolume { get; set; }
value = candleChartWithTimeframeView.ShowVolume
candleChartWithTimeframeView.ShowVolume = value

Whether the volume subplot is shown.

StripBackgroundColor
public Color StripBackgroundColor { get; set; }
value = candleChartWithTimeframeView.StripBackgroundColor
candleChartWithTimeframeView.StripBackgroundColor = value

Background colour of the timeframe strip.

Timeframes
public IReadOnlyList<ChartTimeframe> Timeframes { get; set; }
value = candleChartWithTimeframeView.Timeframes
candleChartWithTimeframeView.Timeframes = value

The timeframes offered by the strip. Defaults to DefaultTimeframes.

TimeframeSelectedCommand
public ICommand TimeframeSelectedCommand { get; set; }
value = candleChartWithTimeframeView.TimeframeSelectedCommand
candleChartWithTimeframeView.TimeframeSelectedCommand = value

Invoked with the chosen timeframe (an Int32 number of minutes) whenever the user taps a strip entry — the host reloads candles here.

VisibleCandleCount
public int VisibleCandleCount { get; set; }
value = candleChartWithTimeframeView.VisibleCandleCount
candleChartWithTimeframeView.VisibleCandleCount = value

How many candles are visible in the viewport.