Class BaseChartItem
This is a base implementation of the IChartItem interface. All inheriting classes further specialize the implementation for the items used in the different chart types. Each item is the visual representation of a single DataPoint from the DataSeries collections.
Inheritance
Namespace: Telerik.Windows.Controls.Charting
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public abstract class BaseChartItem : Control, IChartItem, ILogicalItem, IAnimatable
Constructors
BaseChartItem()
Fields
CurrentIndexProperty
Identifies the CurrentIndex dependency property.
Declaration
public static readonly DependencyProperty CurrentIndexProperty
Field Value
System.Windows.DependencyProperty
|
DataPointProperty
Identifies the DataPoint dependency property.
Declaration
public static readonly DependencyProperty DataPointProperty
Field Value
System.Windows.DependencyProperty
|
DataSeriesProperty
Identifies the DataSeries dependency property.
Declaration
public static readonly DependencyProperty DataSeriesProperty
Field Value
System.Windows.DependencyProperty
|
IsFirstProperty
Identifies the IsFirst dependency property.
Declaration
public static readonly DependencyProperty IsFirstProperty
Field Value
System.Windows.DependencyProperty
|
IsLastProperty
Identifies the IsLast dependency property.
Declaration
public static readonly DependencyProperty IsLastProperty
Field Value
System.Windows.DependencyProperty
|
ItemClickEvent
Occurs when the chart item is clicked.
Declaration
public static readonly RoutedEvent ItemClickEvent
Field Value
System.Windows.RoutedEvent
|
ItemStyleProperty
Identifies the ItemStyle dependency property.
Declaration
public static readonly DependencyProperty ItemStyleProperty
Field Value
System.Windows.DependencyProperty
|
LastDataPointProperty
Identifies the LastDataPoint dependency property.
Declaration
public static readonly DependencyProperty LastDataPointProperty
Field Value
System.Windows.DependencyProperty
|
PreviewItemClickEvent
Occurs when the chart item is clicked.
Declaration
public static readonly RoutedEvent PreviewItemClickEvent
Field Value
System.Windows.RoutedEvent
|
Properties
AnimationsEnabled
Gets a value indicating whether animations are enabled.
Declaration
protected bool AnimationsEnabled { get; }
Property Value
System.Boolean
|
ChartArea
Gets the Chart Area in which the current DataSeries is visualized.
Declaration
public ChartArea ChartArea { get; }
Property Value
ChartArea
The current Chart Area. |
Implements
CurrentIndex
Gets or sets the index of the current item's DataPoint in the DataSeries.
Declaration
public int CurrentIndex { get; set; }
Property Value
System.Int32
The index of the current. |
Implements
DataPoint
Gets or sets the current data point.
Declaration
public virtual DataPoint DataPoint { get; set; }
Property Value
DataPoint
The data point. |
Implements
DataSeries
Gets or sets the DataSeries collection to which the DataPoint belongs.
Declaration
public DataSeries DataSeries { get; set; }
Property Value
DataSeries
|
Implements
IsFirst
Gets or sets a value indicating whether this instance is first in the DataSeries.
Declaration
public bool IsFirst { get; set; }
Property Value
System.Boolean
|
IsLast
Gets or sets a value indicating whether this instance is last in the DataSeries.
Declaration
public bool IsLast { get; set; }
Property Value
System.Boolean
|
ItemStyle
Gets or sets the style that applies appearance settings on the respective series item.
Declaration
public Style ItemStyle { get; set; }
Property Value
System.Windows.Style
|
LastDataPoint
Gets or sets the last data point in the DataPoint collection.
Declaration
public DataPoint LastDataPoint { get; set; }
Property Value
DataPoint
The last data point. |
StoryboardResourceKeyFormat
This property supports the RadChart infrastructure and is not intended to be used directly from your code.
Declaration
public string StoryboardResourceKeyFormat { get; }
Property Value
System.String
|
Transform
Gets the transform associated with the animation of the respective chart series item.
Declaration
protected ScaleTransform Transform { get; set; }
Property Value
System.Windows.Media.ScaleTransform
|
Methods
AppearanceItemPropertyChanged(Object, PropertyChangedEventArgs)
Raised when inner appearance property changes.
Declaration
protected virtual void AppearanceItemPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
System.Object
sender
The sender. |
System.ComponentModel.PropertyChangedEventArgs
e
The System.ComponentModel.PropertyChangedEventArgs instance containing the event data. |
ApplyCustomAppearanceSettings()
Applies the custom appearance settings.
Declaration
protected virtual void ApplyCustomAppearanceSettings()
ApplyCustomAppearanceSettings(Shape)
Applies the custom appearance settings.
Declaration
protected void ApplyCustomAppearanceSettings(Shape styleableElement)
Parameters
System.Windows.Shapes.Shape
styleableElement
The styleable element. |
ApplyCustomAppearanceSettings(Shape, Boolean)
Applies the custom appearance settings.
Declaration
protected void ApplyCustomAppearanceSettings(Shape styleableElement, bool keepFillTransparent)
Parameters
System.Windows.Shapes.Shape
styleableElement
The styleable element. |
System.Boolean
keepFillTransparent
If set to |
ApplyCustomStrokeSettings(Shape)
Applies the custom stroke settings.
Declaration
protected void ApplyCustomStrokeSettings(Shape styleableElement)
Parameters
System.Windows.Shapes.Shape
styleableElement
The styleable element. |
ApplyCustomStrokeSettings(ParametricLine)
Applies the custom stroke settings.
Declaration
protected void ApplyCustomStrokeSettings(ParametricLine styleableElement)
Parameters
ParametricLine
styleableElement
The styleable element. |
BaseChartItemClicked(Object, MouseButtonEventArgs)
Bases the chart item clicked.
Declaration
protected void BaseChartItemClicked(object sender, MouseButtonEventArgs args)
Parameters
System.Object
sender
The sender. |
System.Windows.Input.MouseButtonEventArgs
args
The System.Windows.Input.MouseButtonEventArgs instance containing the event data. |
BaseChartItemMouseEnter(Object, MouseEventArgs)
Handles the MouseEnter event.
Declaration
protected void BaseChartItemMouseEnter(object sender, MouseEventArgs args)
Parameters
System.Object
sender
The sender. |
System.Windows.Input.MouseEventArgs
args
The System.Windows.Input.MouseEventArgs instance containing the event data. |
BaseChartItemMouseLeave(Object, MouseEventArgs)
Handles the MouseLeave event.
Declaration
protected void BaseChartItemMouseLeave(object sender, MouseEventArgs args)
Parameters
System.Object
sender
The sender. |
System.Windows.Input.MouseEventArgs
args
The System.Windows.Input.MouseEventArgs instance containing the event data. |
BaseChartItemMouseMove(Object, MouseEventArgs)
Handles the MouseMove event.
Declaration
protected void BaseChartItemMouseMove(object sender, MouseEventArgs args)
Parameters
System.Object
sender
The sender. |
System.Windows.Input.MouseEventArgs
args
The System.Windows.Input.MouseEventArgs instance containing the event data. |
ConfigureAnimationSettings()
Configures the animation settings.
Declaration
protected virtual void ConfigureAnimationSettings()
ConfigureInitialTransformState()
Configures the initial state of the transform.
Declaration
protected virtual void ConfigureInitialTransformState()
DataPointPropertyChanged(Object, PropertyChangedEventArgs)
This method is called whenever the PropertyChanged event of the DataPoint occurs.
Declaration
protected virtual void DataPointPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
System.Object
sender
The sender. |
System.ComponentModel.PropertyChangedEventArgs
e
The System.ComponentModel.PropertyChangedEventArgs instance containing the event data. |
HideToolTip()
Hides the tooltip of the chart item.
Declaration
public void HideToolTip()
OnAnimationSettingsChanged()
Called when the animation settings associated with the respective series item change.
Declaration
protected virtual void OnAnimationSettingsChanged()
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnDataPointChanged(Object, DependencyPropertyChangedEventArgs)
Occurs when the DataPoint is changed.
Declaration
protected virtual void OnDataPointChanged(object sender, DependencyPropertyChangedEventArgs args)
Parameters
System.Object
sender
The sender. |
System.Windows.DependencyPropertyChangedEventArgs
args
The System.ComponentModel.PropertyChangedEventArgs instance containing the event data. |
OnDataSeriesDefinitionChanged(Object, PropertyChangedEventArgs)
Called when DataSeries Definition is changed.
Declaration
protected virtual void OnDataSeriesDefinitionChanged(object sender, PropertyChangedEventArgs e)
Parameters
System.Object
sender
The sender. |
System.ComponentModel.PropertyChangedEventArgs
e
The System.ComponentModel.PropertyChangedEventArgs instance containing the event data. |
OnInitialized(EventArgs)
Raises the Initialized event.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.EventArgs instance containing the event data. |
OnLabelSettingsPropertyChanged(Object, PropertyChangedEventArgs)
Called when the label settings property is changed.
Declaration
protected virtual void OnLabelSettingsPropertyChanged(object sender, PropertyChangedEventArgs args)
Parameters
System.Object
sender
The sender. |
System.ComponentModel.PropertyChangedEventArgs
args
The System.ComponentModel.PropertyChangedEventArgs instance containing the event data. |
PreviewBaseChartItemClicked(Object, MouseButtonEventArgs)
Previews the base chart item clicked.
Declaration
protected void PreviewBaseChartItemClicked(object sender, MouseButtonEventArgs e)
Parameters
System.Object
sender
The sender. |
System.Windows.Input.MouseButtonEventArgs
e
The System.Windows.Input.MouseButtonEventArgs instance containing the event data. |
SetSeriesItemStyle()
Sets the series item style.
Declaration
protected virtual void SetSeriesItemStyle()
SetSeriesItemStyle(Object)
Sets the series item style.
Declaration
protected virtual void SetSeriesItemStyle(object resourceId)
Parameters
System.Object
resourceId
The resource id. |