Class
DataItemBase

Provides base functionality for data points implementations.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public abstract class DataItemBase : INotifyPropertyChanged

Inheritance: objectDataItemBase

Derived Classes: DataBarDataItemHeatMapItemSparkDataPointTimelineDataItem

Implements: INotifyPropertyChanged

Constructors

DataItemBase()

Initializes a new instance of the DataItemBase class.

Declaration

cs-api-definition
protected DataItemBase()

Properties

DataItem

Gets or sets the data item.

Declaration

cs-api-definition
public object DataItem { get; set; }

Property Value

object

The data item.

Methods

GetValue(string)

Extracts the value from the DataItem and provided value path.

Declaration

cs-api-definition
protected object GetValue(string valuePath)

Parameters

valuePath

string

The value path.

Returns

object

OnPropertyChanged(object, PropertyChangedEventArgs)

Called when a property changes.

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(object sender, PropertyChangedEventArgs args)

Parameters

sender

object

The sender.

args

PropertyChangedEventArgs

The PropertyChangedEventArgs instance containing the event data.

OnPropertyChanged(string)

Raises the event.

Declaration

cs-api-definition
protected void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

Name of the property.

RegisterObservableProperty(string, string)

Registers the observable property.

Declaration

cs-api-definition
protected void RegisterObservableProperty(string sourceItemPropertyPath, string targetPropertyName)

Parameters

sourceItemPropertyPath

string

The source item property path.

targetPropertyName

string

Name of the target property.

UnregisterObservableProperty(string, string)

Unregisters the observable property.

Declaration

cs-api-definition
protected void UnregisterObservableProperty(string sourceItemPropertyPath, string targetPropertyName)

Parameters

sourceItemPropertyPath

string

The source item property path.

targetPropertyName

string

Name of the target property.

UpdatePropertyRegistration(string, string, string)

Updates the property registration.

Declaration

cs-api-definition
protected void UpdatePropertyRegistration(string oldSourceItemPropertyPath, string newSourceItemPropertyPath, string targetPropertyName)

Parameters

oldSourceItemPropertyPath

string

The old path.

newSourceItemPropertyPath

string

The new path.

targetPropertyName

string

Name of the property.

Events

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged