Class FastItemsControl<TItem, TPanel>
Custom lightweight ItemsControl. Does not wrap the generated items into ItemsPresenter. Listens to CollectionChanged events and acts appropriately.
Namespace: Telerik.Windows.Controls.Sparklines
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public abstract class FastItemsControl<TItem, TPanel> : FastItemsControlBase where TItem : FrameworkElement, new()
where TPanel : Panel, new()
Type Parameters
TItem
The type of the item. |
TPanel
The type of the panel. |
Constructors
FastItemsControl()
Declaration
protected FastItemsControl()
Fields
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
System.Windows.DependencyProperty
|
ItemStyleProperty
Identifies the ItemStyle dependency property.
Declaration
public static readonly DependencyProperty ItemStyleProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Children
Gets the children.
Declaration
protected UIElementCollection Children { get; }
Property Value
System.Windows.Controls.UIElementCollection
The children. |
HostPanel
Provides access to the panel hosting the control's items.
Declaration
protected TPanel HostPanel { get; }
Property Value
TPanel
|
ItemsSource
Gets or sets the ItemsSource.
Declaration
public object ItemsSource { get; set; }
Property Value
System.Object
|
ItemStyle
Gets or sets the ItemStyle.
Declaration
public Style ItemStyle { get; set; }
Property Value
System.Windows.Style
|
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. 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
TItem
visualItem
The visual item. |
System.Object
dataItem
The data item. |
OnItemRemoved(TItem, Object)
Occurs when an item is removed.
Declaration
protected virtual void OnItemRemoved(TItem visualItem, object dataItem)
Parameters
TItem
visualItem
The visual item. |
System.Object
dataItem
The data item. |
OnItemsChanged()
Occurs when new items are added or removed.
Declaration
protected virtual void OnItemsChanged()