Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CandleStickSeries2D.FillMode Attached Property

Gets or sets a value specifying how the Candle Stick points will be filled.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

#Returns

Type Description
CandleStickFillMode

The specified fill mode.

#Remarks

This property is the attached property of the ReductionStockOptions class.

To specify the FillMode property, use the CandleStickFillMode enumeration values. The following table lists all the possible values of the property.

Value Description Image
CandleStickFillMode.AlwaysEmpty Candles are always empty. CandleStickFillMode_AlwaysEmpty
CandleStickFillMode.AlwaysFilled Candles are always filled. CandleStickFillMode_AlwaysFilled
CandleStickFillMode.FilledOnIncrease A candle is filled if its close value is greater than its open value. CandleStickFillMode_FilledOnIncrease
CandleStickFillMode.FilledOnReduction A candle is filled if its open value is greater than its close value. CandleStickFillMode_FilledOnReduction

#Example

The following example demonstrates how to specify the Candle Stick chart’s fill mode and color mode.

<dxc:CandleStickSeries2D.ReductionOptions>
    <dxc:ReductionStockOptions ColorMode="OpenToCloseValue" 
                               dxc:CandleStickSeries2D.FillMode="FilledOnReduction"/>
</dxc:CandleStickSeries2D.ReductionOptions>
See Also