Class DataPoint
Represents a control that displays a data point.
Inheritance
Inherited Members
Namespace: System.Windows.Controls.DataVisualization.Charting
Assembly: Controls.DataVisualization.OpenSilver.dll
Syntax
public abstract class DataPoint : Control
Constructors
| Improve this Doc View SourceDataPoint()
Initializes a new instance of the DataPoint class.
Declaration
protected DataPoint()
Fields
| Improve this Doc View SourceActualDependentValueProperty
Identifies the ActualDependentValue dependency property.
Declaration
public static readonly DependencyProperty ActualDependentValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ActualIndependentValueProperty
Identifies the ActualIndependentValue dependency property.
Declaration
public static readonly DependencyProperty ActualIndependentValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DependentValueProperty
Identifies the DependentValue dependency property.
Declaration
public static readonly DependencyProperty DependentValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DependentValueStringFormatProperty
Identifies the DependentValueStringFormat dependency property.
Declaration
public static readonly DependencyProperty DependentValueStringFormatProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FormattedDependentValueProperty
Identifies the FormattedDependentValue dependency property.
Declaration
public static readonly DependencyProperty FormattedDependentValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FormattedIndependentValueProperty
Identifies the FormattedIndependentValue dependency property.
Declaration
public static readonly DependencyProperty FormattedIndependentValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IndependentValueProperty
Identifies the IndependentValue dependency property.
Declaration
public static readonly DependencyProperty IndependentValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IndependentValueStringFormatProperty
Identifies the IndependentValueStringFormat dependency property.
Declaration
public static readonly DependencyProperty IndependentValueStringFormatProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsSelectionEnabledProperty
Identifies the IsSelectionEnabled dependency property.
Declaration
public static readonly DependencyProperty IsSelectionEnabledProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceActualDependentValue
Gets or sets the actual dependent value displayed in the chart.
Declaration
public IComparable ActualDependentValue { get; set; }
Property Value
Type | Description |
---|---|
System.IComparable |
ActualIndependentValue
Gets or sets the actual independent value.
Declaration
public object ActualIndependentValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
DependentValue
Gets or sets the dependent value of the Control.
Declaration
public IComparable DependentValue { get; set; }
Property Value
Type | Description |
---|---|
System.IComparable |
DependentValueStringFormat
Gets or sets the format string for the FormattedDependentValue property.
Declaration
public string DependentValueStringFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FormattedDependentValue
Gets the DependentValue as formatted by the DependentValueStringFormat property.
Declaration
public string FormattedDependentValue { get; }
Property Value
Type | Description |
---|---|
System.String |
FormattedIndependentValue
Gets the IndependentValue as formatted by the IndependentValueStringFormat property.
Declaration
public string FormattedIndependentValue { get; }
Property Value
Type | Description |
---|---|
System.String |
IndependentValue
Gets or sets the independent value.
Declaration
public object IndependentValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
IndependentValueStringFormat
Gets or sets the format string for the FormattedIndependentValue property.
Declaration
public string IndependentValueStringFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsHovered
Gets a value indicating whether the mouse is hovering over the data point.
Declaration
protected bool IsHovered { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsSelectionEnabled
Gets or sets a value indicating whether selection is enabled.
Declaration
public bool IsSelectionEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceOnActualDependentValuePropertyChanged(IComparable, IComparable)
Called when the value of the ActualDependentValue property changes.
Declaration
protected virtual void OnActualDependentValuePropertyChanged(IComparable oldValue, IComparable newValue)
Parameters
Type | Name | Description |
---|---|---|
System.IComparable | oldValue | The value to be replaced. |
System.IComparable | newValue | The new value. |
OnActualIndependentValuePropertyChanged(Object, Object)
Called when the ActualIndependentValue property changes.
Declaration
protected virtual void OnActualIndependentValuePropertyChanged(object oldValue, object newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Object | oldValue | The value to be replaced. |
System.Object | newValue | The new value. |
OnApplyTemplate()
Builds the visual tree for the DataPoint when a new template is applied.
Declaration
public override void OnApplyTemplate()
Overrides
| Improve this Doc View SourceOnDependentValuePropertyChanged(IComparable, IComparable)
Called when the DependentValue property changes.
Declaration
protected virtual void OnDependentValuePropertyChanged(IComparable oldValue, IComparable newValue)
Parameters
Type | Name | Description |
---|---|---|
System.IComparable | oldValue | The value to be replaced. |
System.IComparable | newValue | The new value. |
OnDependentValueStringFormatPropertyChanged(String, String)
Called when DependentValueStringFormat property changes.
Declaration
protected virtual void OnDependentValueStringFormatPropertyChanged(string oldValue, string newValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | oldValue | The value to be replaced. |
System.String | newValue | The new value. |
OnIndependentValuePropertyChanged(Object, Object)
Called when the IndependentValue property changes.
Declaration
protected virtual void OnIndependentValuePropertyChanged(object oldValue, object newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Object | oldValue | The old value. |
System.Object | newValue | The new value. |
OnIndependentValueStringFormatPropertyChanged(String, String)
Called when the value of the IndependentValueStringFormat property changes.
Declaration
protected virtual void OnIndependentValueStringFormatPropertyChanged(string oldValue, string newValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | oldValue | The value to be replaced. |
System.String | newValue | The new value. |
OnIsHoveredPropertyChanged(Boolean, Boolean)
IsHoveredProperty property changed handler.
Declaration
protected virtual void OnIsHoveredPropertyChanged(bool oldValue, bool newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | oldValue | Old value. |
System.Boolean | newValue | New value. |
OnIsSelectedPropertyChanged(Boolean, Boolean)
IsSelectedProperty property changed handler.
Declaration
protected virtual void OnIsSelectedPropertyChanged(bool oldValue, bool newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | oldValue | The value to be replaced. |
System.Boolean | newValue | The new value. |
OnIsSelectionEnabledPropertyChanged(Boolean, Boolean)
IsSelectionEnabledProperty property changed handler.
Declaration
protected virtual void OnIsSelectionEnabledPropertyChanged(bool oldValue, bool newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | oldValue | Old value. |
System.Boolean | newValue | New value. |
OnMouseEnter(MouseEventArgs)
Provides handling for the MouseEnter event.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | e | Event arguments. |
Overrides
| Improve this Doc View SourceOnMouseLeave(MouseEventArgs)
Provides handling for the MouseLeave event.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | e | Event arguments. |
Overrides
| Improve this Doc View SourceOnMouseLeftButtonDown(MouseButtonEventArgs)
Provides handling for the MouseLeftButtonDown event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseButtonEventArgs | e | Event arguments. |
Overrides
| Improve this Doc View SourceOnStatePropertyChanged(DataPointState, DataPointState)
Called when the value of the State property changes.
Declaration
protected virtual void OnStatePropertyChanged(DataPointState oldValue, DataPointState newValue)
Parameters
Type | Name | Description |
---|---|---|
DataPointState | oldValue | The value to be replaced. |
DataPointState | newValue | The new value. |