In This Article

MicroXYChart Class

Represents a micro chart control that uses an X/Y coordinate system.

[StyleTypedProperty(Property = "AxisBaselineStyle", StyleTargetType = typeof(Shape))]
[TemplatePart(Name = "PART_Canvas", Type = typeof(MicroChartCanvas))]
public class MicroXYChart : MicroChartBase
Inheritance:
object Visual UIElement FrameworkElement Control MicroChartBase object

Constructors

MicroXYChart()

Initializes a new instance of the MicroXYChart class.

public MicroXYChart()

Properties

AxisBaselineStyle

Gets or sets a Style, which is applied to the Shape element used to render the baseline along the chart. This is a dependency property.

public Style AxisBaselineStyle { get; set; }

Property Value

Style:

A Style, which is applied to the Shape element used to render the baseline along the chart. The default value is null.

AxisBaselineValue

Gets or sets the baseline value for the oriented axis. This is a dependency property.

public object AxisBaselineValue { get; set; }

Property Value

object:

The baseline value for the oriented axis. The default value is null, which indicates to automatically calculate the baseline value.

IsAxisBaselineVisible

Gets or sets a value indicating whether a line is rendered at the baseline value. This is a dependency property.

public bool IsAxisBaselineVisible { get; set; }

Property Value

bool:

true if a line is rendered at the baseline value; otherwise, false. The default value is false.

IsHotTrackingEnabled

Gets or sets a value indicating whether hot tracking is enabled, which is displays a tooltip with the associated value nearest the mouse cursor. This is a dependency property.

public bool IsHotTrackingEnabled { get; set; }

Property Value

bool:

true if hot tracking is enabled; otherwise, false. The default value is false.

Ranges

Gets the collection of ranges displayed by this chart.

public MicroXYRangeCollection Ranges { get; }

Property Value

MicroXYRangeCollection:

The collection of ranges displayed by this chart.

Series

Gets the collection of series displayed by this chart.

public MicroXYSeriesCollection Series { get; }

Property Value

MicroXYSeriesCollection:

The collection of series displayed by this chart.

XAxisMaximum

Gets or sets the maximum value along the X-axis. This is a dependency property.

public object XAxisMaximum { get; set; }

Property Value

object:

The maximum value along the X-axis. The default value is null, which indicates to automatically calculate the maximum value.

XAxisMinimum

Gets or sets the minimum value along the X-axis. This is a dependency property.

public object XAxisMinimum { get; set; }

Property Value

object:

The minimum value along the X-axis. The default value is null, which indicates to automatically calculate the minimum value.

YAxisMaximum

Gets or sets the maximum value along the Y-axis. This is a dependency property.

public object YAxisMaximum { get; set; }

Property Value

object:

The maximum value along the Y-axis. The default value is null, which indicates to automatically calculate the maximum value.

YAxisMinimum

Gets or sets the minimum value along the Y-axis. This is a dependency property.

public object YAxisMinimum { get; set; }

Property Value

object:

The minimum value along the Y-axis. The default value is null, which indicates to automatically calculate the minimum value.

Methods

OnApplyTemplate()

Invoked whenever application code or internal processes call ApplyTemplate.

public override void OnApplyTemplate()

OnCreateAutomationPeer()

When implemented in a derived class, returns class-specific AutomationPeer implementations for the Silverlight automation infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The class-specific AutomationPeer subclass to return.

OnMouseEnter(MouseEventArgs)

Called before the MouseEnter event occurs.

protected override void OnMouseEnter(MouseEventArgs e)
Parameter Type Description
e MouseEventArgs

The data for the event.

OnMouseLeave(MouseEventArgs)

Called before the MouseLeave event occurs.

protected override void OnMouseLeave(MouseEventArgs e)
Parameter Type Description
e MouseEventArgs

The data for the event.

OnMouseMove(MouseEventArgs)

Called before the MouseMove event occurs.

protected override void OnMouseMove(MouseEventArgs e)
Parameter Type Description
e MouseEventArgs

The data for the event.

OnSizeChanged(object, SizeChangedEventArgs)

Handles the SizeChanged event of the control.

protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)
Parameter Type Description
sender object

The source of the event.

e SizeChangedEventArgs

The SizeChangedEventArgs instance containing the event data.

Refresh()

Updates the chart based on the current state.

public override void Refresh()

Fields

AxisBaselineStyleProperty

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

public static readonly DependencyProperty AxisBaselineStyleProperty

AxisBaselineValueProperty

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

public static readonly DependencyProperty AxisBaselineValueProperty

IsAxisBaselineVisibleProperty

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

public static readonly DependencyProperty IsAxisBaselineVisibleProperty

IsHotTrackingEnabledProperty

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

public static readonly DependencyProperty IsHotTrackingEnabledProperty

XAxisMaximumProperty

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

public static readonly DependencyProperty XAxisMaximumProperty

XAxisMinimumProperty

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

public static readonly DependencyProperty XAxisMinimumProperty

YAxisMaximumProperty

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

public static readonly DependencyProperty YAxisMaximumProperty

YAxisMinimumProperty

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

public static readonly DependencyProperty YAxisMinimumProperty

Inherited Members