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
Inheritance:
object Visual UIElement FrameworkElement Control SeriesBase XYSeriesBase object
Derived:
BarSeries

Constructors

BarSeriesBase()

Initializes an instance of the class.

protected BarSeriesBase()

Properties

BarStyle

Gets or sets a Style, which is applied to the Shape used to render the series. This is a dependency property.

public Style BarStyle { get; set; }

Property Value

Style:

A Style, which is applied to the Shape used to render the series. The default value is null.

BarTemplate

Gets or sets DataTemplate that is used to customize the content of a single bar in a bar series. This is a dependency property.

public DataTemplate BarTemplate { get; set; }

Property Value

DataTemplate:

The bar template. The default value is null.

LabelPositioningMode

Gets or sets the LabelPositioningMode used to determine how labels are laid out.

public LabelPositioningMode LabelPositioningMode { get; set; }

Property Value

LabelPositioningMode:

The label positioning mode. The default value is FromBaseline.

LogicalOrientation

Gets the logical orientation of the series.

public override Orientation LogicalOrientation { get; }

Property Value

Orientation

MarkerVisibility

Gets or sets a value indicating which markers are rendered along the series. This is a dependency property.

public ChartMarkerVisibility MarkerVisibility { get; set; }

Property Value

ChartMarkerVisibility:

A ChartMarkerVisibility indicating which markers are rendered along the series. The default value is ChartMarkerVisibility.None.

MinimumMargin

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

protected override Thickness? MinimumMargin { get; }

Property Value

Thickness?:

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

Orientation

Gets or sets the orientation of the series. This is a dependency property.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The orientation of the series. The default value is Orientation.Horizontal.

RequiresSlottedLayout

Gets a value indicating whether the series requires slotted layout.

public override bool RequiresSlottedLayout { get; }

Property Value

bool:

true if the series requires slotted layout; otherwise, false.

Fields

BarStyleProperty

Identifies the BarStyle dependency property. This field is read-only.

public static readonly DependencyProperty BarStyleProperty

BarTemplateProperty

Identifies the BarTemplate dependency property. This field is read-only.

public static readonly DependencyProperty BarTemplateProperty

LabelPositioningModeProperty

Identifies the LabelPositioningMode dependency property. This field is read-only.

public static readonly DependencyProperty LabelPositioningModeProperty

MarkerVisibilityProperty

Identifies the MarkerVisibility dependency property. This field is read-only.

public static readonly DependencyProperty MarkerVisibilityProperty

OrientationProperty

Identifies the Orientation dependency property. This field is read-only.

public static readonly DependencyProperty OrientationProperty

Inherited Members