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 an instance of the class.

public MicroXYChart()

Properties

AxisBaselineStyle

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

public Style? AxisBaselineStyle { get; set; }

Property Value

Style

AxisBaselineValue

The baseline value for the oriented axis.

public object? AxisBaselineValue { get; set; }

Property Value

object:

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

IsAxisBaselineVisible

Indicates whether a line is rendered at the baseline value.

public bool IsAxisBaselineVisible { get; set; }

Property Value

bool:

The default value is false.

IsHotTrackingEnabled

Indicates whether hot tracking is enabled, which is displays a tooltip with the associated value nearest the mouse cursor.

public bool IsHotTrackingEnabled { get; set; }

Property Value

bool:

The default value is false.

Ranges

The collection of ranges displayed by this chart.

public MicroXYRangeCollection Ranges { get; }

Property Value

MicroXYRangeCollection

Series

The collection of series displayed by this chart.

public MicroXYSeriesCollection Series { get; }

Property Value

MicroXYSeriesCollection

XAxisMaximum

The maximum value along the X-axis.

public object? XAxisMaximum { get; set; }

Property Value

object:

The default value is null, which indicates to automatically calculate the maximum value.

XAxisMinimum

The minimum value along the X-axis.

public object? XAxisMinimum { get; set; }

Property Value

object:

The default value is null, which indicates to automatically calculate the minimum value.

YAxisMaximum

The maximum value along the Y-axis.

public object? YAxisMaximum { get; set; }

Property Value

object:

The default value is null, which indicates to automatically calculate the maximum value.

YAxisMinimum

The minimum value along the Y-axis.

public object? YAxisMinimum { get; set; }

Property Value

object:

The default value is null, which indicates to automatically calculate the minimum value.

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

OnMouseEnter(MouseEventArgs)

Invoked when an unhandled System.Windows.Input.Mouse.MouseEnter attached event is raised on this element. Implement this method to add class handling for this event.

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

The MouseEventArgs that contains the event data.

OnMouseLeave(MouseEventArgs)

Invoked when an unhandled System.Windows.Input.Mouse.MouseLeave attached event is raised on this element. Implement this method to add class handling for this event.

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

The MouseEventArgs that contains the event data.

OnMouseMove(MouseEventArgs)

Invoked when an unhandled System.Windows.Input.Mouse.MouseMove attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

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

The MouseEventArgs that contains the event data.

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 event data.

Refresh()

Updates the chart based on the current state.

public override void Refresh()

Fields

AxisBaselineStyleProperty

Defines the AxisBaselineStyle property.

public static readonly DependencyProperty AxisBaselineStyleProperty

AxisBaselineValueProperty

Defines the AxisBaselineValue property.

public static readonly DependencyProperty AxisBaselineValueProperty

IsAxisBaselineVisibleProperty

Defines the IsAxisBaselineVisible property.

public static readonly DependencyProperty IsAxisBaselineVisibleProperty

IsHotTrackingEnabledProperty

Defines the IsHotTrackingEnabled property.

public static readonly DependencyProperty IsHotTrackingEnabledProperty

XAxisMaximumProperty

Defines the XAxisMaximum property.

public static readonly DependencyProperty XAxisMaximumProperty

XAxisMinimumProperty

Defines the XAxisMinimum property.

public static readonly DependencyProperty XAxisMinimumProperty

YAxisMaximumProperty

Defines the YAxisMaximum property.

public static readonly DependencyProperty YAxisMaximumProperty

YAxisMinimumProperty

Defines the YAxisMinimum property.

public static readonly DependencyProperty YAxisMinimumProperty

Inherited Members

Extension Methods