BarStyle

References
public sealed class BarStyle
Styling properties of a Bar control.

Constructors

BarStyle

#
public BarStyle(bool categories, int radius, Padding padding)
Create a new style.
categories (bool)
radius (int)
padding (Padding)

Properties

Categories

#
public bool Categories { get; }
Gets whether or not category labels are drawn underneath the bar.

Default

#
public static BarStyle Default { get; }
Gets the default style.

DefaultWithoutCategories

#
public static BarStyle DefaultWithoutCategories { get; }
Gets the default style without category labels.

Padding

#
public Padding Padding { get; }
Gets the padding between the toolbar bounds and the layout region.

Radius

#
public int Radius { get; }
Gets the radius of the corners of the free bar elements.

Methods

WithCategories

#
public BarStyle WithCategories()
Gets the style with category labels.

WithoutCategories

#
public BarStyle WithoutCategories()
Gets the style without category labels.

WithPadding

#
public BarStyle WithPadding(Padding padding)
Modify the padding.
padding (Padding)

WithRadius

#
public BarStyle WithRadius(int radius)
Modify the radius.
radius (int)