In This Article

ChartPanel Class

ChartPanel is responsible for orchestrating the layout / arrangement of different chart elements, and the order in which they refresh, measure, and arrange.

public class ChartPanel : Panel
Inheritance:
object Visual UIElement FrameworkElement Panel object

Constructors

ChartPanel()

Initializes a new instance of the ChartPanel class.

public ChartPanel()

Properties

IsLegendVisible

Gets or sets a value indicating whether this instance is legend visible.

public bool IsLegendVisible { get; set; }

Property Value

bool:

true if this instance is legend visible; otherwise, false.

LegendHorizontalPosition

Gets or sets the legend horizontal position.

public LegendHorizontalPosition LegendHorizontalPosition { get; set; }

Property Value

LegendHorizontalPosition:

The legend horizontal position.

LegendVerticalPosition

Gets or sets the legend vertical position.

public LegendVerticalPosition LegendVerticalPosition { get; set; }

Property Value

LegendVerticalPosition:

The legend vertical position.

PaddingPercentage

Gets or sets the padding percentage.

public Thickness PaddingPercentage { get; set; }

Property Value

Thickness:

The padding percentage.

Methods

ArrangeOverride(Size)

Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior.

protected override Size ArrangeOverride(Size finalSize)
Parameter Type Description
finalSize Size

The final area within the parent that this object should use to arrange itself and its children.

Returns

Size:

The actual size that is used after the element is arranged in layout.

MeasureOverride(Size)

Provides the behavior for the Measure pass of layout. Classes can override this method to define their own Measure pass behavior.

protected override Size MeasureOverride(Size availableSize)
Parameter Type Description
availableSize Size

The available size that this object can give to child objects. Infinity (PositiveInfinity) can be specified as a value to indicate that the object will size to whatever content is available.

Returns

Size:

The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size.

Teardown()

Tears down the control.

public void Teardown()

Fields

IsLegendVisibleProperty

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

public static readonly DependencyProperty IsLegendVisibleProperty

LegendHorizontalPositionProperty

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

public static readonly DependencyProperty LegendHorizontalPositionProperty

LegendVerticalPositionProperty

The legend vertical position property

public static readonly DependencyProperty LegendVerticalPositionProperty

PaddingPercentageProperty

The padding percentage property

public static readonly DependencyProperty PaddingPercentageProperty