ClassFastItemsControl<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:
public abstract class FastItemsControl<TItem, TPanel> : FastItemsControlBase where TItem : FrameworkElement, new() where TPanel : Panel, new()
Inheritance: objectFastItemsControlBaseFastItemsControl<TItem, TPanel>
Derived Classes:
Inherited Members
Constructors
FastItemsControl()
Declaration
protected FastItemsControl()
Fields
ItemStyleProperty
Identifies the ItemStyle dependency property.
Declaration
public static readonly DependencyProperty ItemStyleProperty
Field Value
DependencyProperty
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
DependencyProperty
Properties
Children
Gets the children.
Declaration
protected UIElementCollection Children { get; }
Property Value
UIElementCollection
The children.
HostPanel
Provides access to the panel hosting the control's items.
Declaration
protected TPanel HostPanel { get; }
Property Value
TPanel
ItemStyle
Gets or sets the ItemStyle.
Declaration
public Style ItemStyle { get; set; }
Property Value
Style
ItemsSource
Gets or sets the ItemsSource.
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
public override void OnApplyTemplate()
Overrides
OnItemAdded(TItem, object)
Occurs when a new item is added.
Declaration
protected virtual void OnItemAdded(TItem visualItem, object dataItem)
Parameters
visualItem
TItem
The visual item.
dataItem
The data item.
OnItemRemoved(TItem, object)
Occurs when an item is removed.
Declaration
protected virtual void OnItemRemoved(TItem visualItem, object dataItem)
Parameters
visualItem
TItem
The visual item.
dataItem
The data item.
OnItemsChanged()
Occurs when new items are added or removed.
Declaration
protected virtual void OnItemsChanged()