CarouselContentItem
RadCarouselContentItem with CarouselElement and Reflection primitive
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CarouselContentItem : VisualElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementCarouselContentItem...
Implements:
Inherited Members
Constructors
Initializes an empty wrapper; assign HostedItem before the element is measured.
public CarouselContentItem()
create element with HostedItem
Fields
The primitive that renders the reflection of the hosted item.
public ReflectionPrimitive reflectionPrimitive
Properties
Gets the center of the hosted item's bounding rectangle, or the wrapper's size when no item is assigned.
public Point Center { get; }
Represent the HostedItem
public RadElement HostedItem { get; set; }
Gets the owner RadCarouselElement.
public RadCarouselElement Owner { get; }
The owner.
Methods
Creates and adds the reflection primitive associated with the hosted item.
protected override void CreateChildElements()
Overrides:
Unsubscribes the reflection primitive from the owning control's invalidation event before disposing base resources.
protected override void DisposeManagedResources()
Overrides:
Disables horizontal and vertical stretching so layout is determined by the hosted item and its reflection.
protected override void InitializeFields()
Overrides:
Measures the hosted item and reflection, reserving a container height of twice the hosted item's desired height plus one pixel.
Clears the reflection's source when its hosted child is removed, then forwards the collection change to the base element.
protected override void OnChildrenChanged(RadElement child, ItemsChangeOperation changeOperation)
The child being added or removed.
changeOperationItemsChangeOperationThe kind of child-collection change.
Overrides: