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 a new instance of the MicroCandlestickChart class.

public MicroCandlestickChart()

Properties

CloseValue

Gets or sets the closing value of the chart. This is a dependency property.

public double CloseValue { get; set; }

Property Value

double:

The closing value of the chart. The default value is 0.0.

GainStyle

Gets or sets the Style used if the closing value is greater than the opening value. This is a dependency property.

public Style GainStyle { get; set; }

Property Value

Style:

The Style used to render the chart.

Remarks

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

HighValue

Gets or sets the highest value of the chart. This is a dependency property.

public double HighValue { get; set; }

Property Value

double:

The highest value of the chart. The default value is 1.0.

LegendStringFormat

Gets or sets the format that the MicroCandlestickChart control will display in a tool tip. This is a dependency property.

public string LegendStringFormat { get; set; }

Property Value

string:

The string format that determines how to display a tool tip. The default value is null.

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

Gets or sets the Style used if the closing value is less than the opening value. This is a dependency property.

public Style LossStyle { get; set; }

Property Value

Style:

The Style used to render the chart.

LowValue

Gets or sets the lowest value of the chart. This is a dependency property.

public double LowValue { get; set; }

Property Value

double:

The lowest value of the chart. The default value is 0.0.

Maximum

Gets or sets the maximum value of the chart. This is a dependency property.

public double Maximum { get; set; }

Property Value

double:

The maximum value of the chart. The default value is NaN.

Minimum

Gets or sets the minimum value of the chart. This is a dependency property.

public double Minimum { get; set; }

Property Value

double:

The minimum value of the chart. The default value is NaN.

OpenValue

Gets or sets the opening value of the chart. This is a dependency property.

public double OpenValue { get; set; }

Property Value

double:

The opening value of the chart. The default value is 0.0.

Orientation

Gets or sets the orientation of the MicroCandlestickChart. This is a dependency property.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The orientation of the MicroCandlestickChart. The default value is Horizontal.

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.

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

Fields

CloseValueProperty

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

public static readonly DependencyProperty CloseValueProperty

GainStyleProperty

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

public static readonly DependencyProperty GainStyleProperty

HighValueProperty

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

public static readonly DependencyProperty HighValueProperty

LegendStringFormatProperty

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

public static readonly DependencyProperty LegendStringFormatProperty

LossStyleProperty

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

public static readonly DependencyProperty LossStyleProperty

LowValueProperty

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

public static readonly DependencyProperty LowValueProperty

MaximumProperty

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

public static readonly DependencyProperty MaximumProperty

MinimumProperty

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

public static readonly DependencyProperty MinimumProperty

OpenValueProperty

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

public static readonly DependencyProperty OpenValueProperty

OrientationProperty

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

public static readonly DependencyProperty OrientationProperty