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.
GainStyle
The Style used if the closing value is greater than the opening value.
public Style? GainStyle { get; set; }
Property Value
Remarks
If this style is left null the LossStyle will be used with a transparent fill.
HighValue
The highest value of the chart.
LegendStringFormat
The format that the MicroCandlestickChart control will display in a tool tip.
public string? LegendStringFormat { get; set; }
Property Value
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.
LowValue
The lowest value of the chart.
Maximum
The maximum value of the chart.
Minimum
The minimum value of the chart.
OpenValue
The opening value of the chart.
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