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.

Erbt von: ContentView

Eigenschaften

ActiveColor : Color

Text colour of the active timeframe entry.

Candles : CandleDataSeries

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

Chart : ChartView

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

DefaultTimeframes : IReadOnlyList<ChartTimeframe>

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

DrawStyle : ChartDrawStyle

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

InactiveColor : Color

Text colour of the inactive timeframe entries.

SelectedTimeframeMinutes : int

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

ShowCrosshair : bool

Whether the crosshair is shown.

ShowLegend : bool

Whether the legend is shown.

ShowVolume : bool

Whether the volume subplot is shown.

StripBackgroundColor : Color

Background colour of the timeframe strip.

Timeframes : IReadOnlyList<ChartTimeframe>

The timeframes offered by the strip. Defaults to DefaultTimeframes.

TimeframeSelectedCommand : ICommand

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

VisibleCandleCount : int

How many candles are visible in the viewport.