MicroCandlestickChart Class
Represents a candlestick chart control.
[TemplatePart(Name = "PART_Canvas", Type = typeof(Canvas))]
public class MicroCandlestickChart : Control, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- Object DispatcherObject DependencyObject 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
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:
LossStyle
Gets or sets the Style used if the closing value is less than the opening value. This is a dependency property.
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
Inherited Members
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()