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
protected FastItemsControl()
Fields
ItemsSourceProperty
DependencyProperty
Identifies the ItemsSource dependency property.
public static readonly DependencyProperty ItemsSourceProperty
ItemStyleProperty
DependencyProperty
Identifies the ItemStyle dependency property.
public static readonly DependencyProperty ItemStyleProperty
Properties
Children
UIElementCollection
Gets the children.
protected UIElementCollection Children { get; }
The children.
HostPanel
TPanel
Provides access to the panel hosting the control's items.
protected TPanel HostPanel { get; }
Gets or sets the ItemsSource.
public object ItemsSource { get; set; }
ItemStyle
Style
Gets or sets the ItemStyle.
public Style ItemStyle { get; set; }
Methods
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.
public override void OnApplyTemplate()
Overrides:
Occurs when a new item is added.
protected virtual void OnItemAdded(TItem visualItem, object dataItem)
The visual item.
dataItemobjectThe data item.
Occurs when an item is removed.
protected virtual void OnItemRemoved(TItem visualItem, object dataItem)
The visual item.
dataItemobjectThe data item.
Occurs when new items are added or removed.
protected virtual void OnItemsChanged()