In This Article

MicroCandlestickChart Class

Represents a candlestick chart control.

[TemplatePart(Name = "PART_Canvas", Type = typeof(Canvas))]
public class MicroCandlestickChart : Control
Inheritance:
object Visual UIElement FrameworkElement Control object

Constructors

MicroCandlestickChart()

Initializes an instance of the class.

public MicroCandlestickChart()

Properties

CloseValue

The closing value of the chart.

public double CloseValue { get; set; }

Property Value

double:

The default value is 0.0.

GainStyle

The Style used if the closing value is greater than the opening value.

public Style? GainStyle { get; set; }

Property Value

Style

Remarks

If this style is left null the LossStyle will be used with a transparent fill.

HighValue

The highest value of the chart.

public double HighValue { get; set; }

Property Value

double:

The default value is 1.0.

LegendStringFormat

The format that the MicroCandlestickChart control will display in a tool tip.

public string? LegendStringFormat { get; set; }

Property Value

string

Remarks

The format string will be passed the following parameters:

  • {0} - The low value.
  • {1} - The high value.
  • {2} - The open value.
  • {3} - The close value.

LossStyle

The Style used if the closing value is less than the opening value.

public Style? LossStyle { get; set; }

Property Value

Style

LowValue

The lowest value of the chart.

public double LowValue { get; set; }

Property Value

double:

The default value is 0.0.

Maximum

The maximum value of the chart.

public double Maximum { get; set; }

Property Value

double:

The default value is NaN.

Minimum

The minimum value of the chart.

public double Minimum { get; set; }

Property Value

double:

The default value is NaN.

OpenValue

The opening value of the chart.

public double OpenValue { get; set; }

Property Value

double:

The default value is 0.0.

Orientation

The orientation of the MicroCandlestickChart.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The default value is Horizontal.

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.

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 void Refresh()

Fields

CloseValueProperty

Defines the CloseValue property.

public static readonly DependencyProperty CloseValueProperty

GainStyleProperty

Defines the GainStyle property.

public static readonly DependencyProperty GainStyleProperty

HighValueProperty

Defines the HighValue property.

public static readonly DependencyProperty HighValueProperty

LegendStringFormatProperty

Defines the LegendStringFormat property.

public static readonly DependencyProperty LegendStringFormatProperty

LossStyleProperty

Defines the LossStyle property.

public static readonly DependencyProperty LossStyleProperty

LowValueProperty

Defines the LowValue property.

public static readonly DependencyProperty LowValueProperty

MaximumProperty

Defines the Maximum property.

public static readonly DependencyProperty MaximumProperty

MinimumProperty

Defines the Minimum property.

public static readonly DependencyProperty MinimumProperty

OpenValueProperty

Defines the OpenValue property.

public static readonly DependencyProperty OpenValueProperty

OrientationProperty

Defines the Orientation property.

public static readonly DependencyProperty OrientationProperty

Extension Methods