In This Article

BarSeriesBase Class

Represents a base class for bar series used in a XYChart.

[StyleTypedProperty(Property = "BarStyle", StyleTargetType = typeof(Border))]
public abstract class BarSeriesBase : XYSeriesBase, IOrientedElement
Inheritance:
object Visual UIElement FrameworkElement Control SeriesBase XYSeriesBase object
Derived:
BarSeries
Implements:
IOrientedElement

Constructors

BarSeriesBase()

Initializes an instance of the class.

protected BarSeriesBase()

Properties

BarStyle

A Style, which is applied to the Shape used to render the series.

public Style? BarStyle { get; set; }

Property Value

Style

BarTemplate

The DataTemplate that is used to customize the content of a single bar in a bar series.

public DataTemplate? BarTemplate { get; set; }

Property Value

DataTemplate

LabelPositioningMode

The LabelPositioningMode used to determine how labels are laid out.

public LabelPositioningMode LabelPositioningMode { get; set; }

Property Value

LabelPositioningMode:

The default value is FromBaseline.

LogicalOrientation

The logical orientation of the series.

public override Orientation LogicalOrientation { get; }

Property Value

Orientation

MarkerVisibility

A value indicating which markers are rendered along the series.

public ChartMarkerVisibility MarkerVisibility { get; set; }

Property Value

ChartMarkerVisibility:

The default value is None.

MinimumMargin

Returns the minimum margin around the plotted area required by the series.

protected override Thickness? MinimumMargin { get; }

Property Value

Thickness?

Orientation

The orientation of the series.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The default value is Horizontal.

RequiresSlottedLayout

Indicates whether the series requires slotted layout.

public override bool RequiresSlottedLayout { get; }

Property Value

bool

Fields

BarStyleProperty

Defines the BarStyle property.

public static readonly DependencyProperty BarStyleProperty

BarTemplateProperty

Defines the BarTemplate property.

public static readonly DependencyProperty BarTemplateProperty

LabelPositioningModeProperty

Defines the LabelPositioningMode property.

public static readonly DependencyProperty LabelPositioningModeProperty

MarkerVisibilityProperty

Defines the MarkerVisibility property.

public static readonly DependencyProperty MarkerVisibilityProperty

OrientationProperty

Defines the Orientation property.

public static readonly DependencyProperty OrientationProperty

Inherited Members

Extension Methods