skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

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
System.Object
BaseChartItem
BaseChartItem2D
BaseChartItem3D<TControl3D>
Namespace: Telerik.Windows.Controls.Charting
Assembly: Telerik.Windows.Controls.Charting.dll

Syntax

public abstract class BaseChartItem : Control, IChartItem, ILogicalItem, IAnimatable

Constructors

BaseChartItem()

Initializes a new instance of the BaseChartItem class.

Declaration
protected 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
IChartItem.ChartArea

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
IChartItem.CurrentIndex

DataPoint

Gets or sets the current data point.

Declaration
public virtual DataPoint DataPoint { get; set; }
Property Value
DataPoint

The data point.

Implements
IChartItem.DataPoint

DataSeries

Gets or sets the DataSeries collection to which the DataPoint belongs.

Declaration
public DataSeries DataSeries { get; set; }
Property Value
DataSeries

Implements
IChartItem.DataSeries

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

True if this instance is first; otherwise, false.

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

True if this instance is last; otherwise, false.

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 true empty fill is applied.

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.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.