Class
FastItemsControl<TItem, TPanel>

Custom lightweight ItemsControl. Does not wrap the generated items into ItemsPresenter. Listens to CollectionChanged events and acts appropriately.

Definition

Namespace:Telerik.Windows.Controls.Sparklines

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Type Parameters:

TItem

The type of the item.

TPanel

The type of the panel.

Syntax:

cs-api-definition
public abstract class FastItemsControl<TItem, TPanel> : FastItemsControlBase where TItem : FrameworkElement, new() where TPanel : Panel, new()

Inheritance: objectFastItemsControlBaseFastItemsControl<TItem, TPanel>

Derived Classes: DataAxisLabelsControlBase<TAxisLabel, TPanel>DataAxisTicksControlBase<TAxisTick, TPanel>StackedBarItemsControlHeatMapLabelsControlBase<TLabel, TPanel>VirtualizingFastItemsControl<TItem, TPanel>

Inherited Members FastItemsControlBase.OnInitialized(EventArgs)FastItemsControlBase.ControlRoot

Constructors

FastItemsControl()

Declaration

cs-api-definition
protected FastItemsControl()

Fields

ItemStyleProperty

Identifies the ItemStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemStyleProperty

Field Value

DependencyProperty

ItemsSourceProperty

Identifies the ItemsSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemsSourceProperty

Field Value

DependencyProperty

Properties

Children

Gets the children.

Declaration

cs-api-definition
protected UIElementCollection Children { get; }

Property Value

UIElementCollection

The children.

HostPanel

Provides access to the panel hosting the control's items.

Declaration

cs-api-definition
protected TPanel HostPanel { get; }

Property Value

TPanel

ItemStyle

Gets or sets the ItemStyle.

Declaration

cs-api-definition
public Style ItemStyle { get; set; }

Property Value

Style

ItemsSource

Gets or sets the ItemsSource.

Declaration

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

Property Value

object

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides FastItemsControlBase.OnApplyTemplate()

OnItemAdded(TItem, object)

Occurs when a new item is added.

Declaration

cs-api-definition
protected virtual void OnItemAdded(TItem visualItem, object dataItem)

Parameters

visualItem

TItem

The visual item.

dataItem

object

The data item.

OnItemRemoved(TItem, object)

Occurs when an item is removed.

Declaration

cs-api-definition
protected virtual void OnItemRemoved(TItem visualItem, object dataItem)

Parameters

visualItem

TItem

The visual item.

dataItem

object

The data item.

OnItemsChanged()

Occurs when new items are added or removed.

Declaration

cs-api-definition
protected virtual void OnItemsChanged()