Back to Devexpress

BarSeriesStyle Class

maui-devexpress-dot-maui-dot-charts-2ddd68f1.md

latest2.4 KB
Original Source

BarSeriesStyle Class

Stores bar series appearance settings.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public class BarSeriesStyle :
    StyleBase

The following members return BarSeriesStyle objects:

Example

This example customizes the bar series appearance (bar color and stroke). To do this, assign the BarSeriesStyle object with the specified settings to the Style property of the bar series.

xaml
<dxc:ChartView>
  <dxc:ChartView.Series>
      <dxc:BarSeries x:Name="barSeries">
          <dxc:BarSeries.Style>
              <dxc:BarSeriesStyle Fill="MediumSeaGreen" Stroke="SeaGreen" StrokeThickness="10"/>
          </dxc:BarSeries.Style>
      </dxc:BarSeries>
  </dxc:ChartView.Series>
</dxc:ChartView>
csharp
using Microsoft.Maui.Graphics;
using DevExpress.Maui.Charts;
// ...

barSeries.Style = new BarSeriesStyle() {
    Fill = Color.MediumSeaGreen,
    Stroke = Color.SeaGreen,
    StrokeThickness = 10
};

Implements

IElementController

INotifyPropertyChanged

Inheritance

System.Object BindableObject Element ChartElementBase ChartElement StyleBase BarSeriesStyle

Extension Methods

Yield<BarSeriesStyle>()

YieldIfNotNull<BarSeriesStyle>()

See Also

BarSeriesStyle Members

DevExpress.Maui.Charts Namespace