ReflectionPrimitive
Represents a RadCarouselReflectionItem primitive that is drawn on the screen.
Definition
Namespace:Telerik.WinControls.Primitives
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ReflectionPrimitive : BasePrimitive, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive, IDisposable
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveReflectionPrimitive...
Implements:
Inherited Members
Constructors
Default cstor for RadCarouselReflectionPrimitive
public ReflectionPrimitive(RadElement ownerElement)
which element will be draw
Properties
Represent ItemReflectionPercentage
public double ItemReflectionPercentage { get; set; }
Gets or sets the element whose rendered output supplies the reflection.
public RadElement OwnerElement { get; set; }
Setting a different non-null owner attaches a paint handler; setting null detaches the previous owner. Assigning the same non-null owner again removes the existing handler without reattaching it.
Methods
Copies a rectangular section of a bitmap into a new bitmap.
Disposes cached reflection bitmaps and detaches the owner paint handler before disposing base resources.
protected override void DisposeManagedResources()
Overrides:
Detaches the invalidation handler from the control that owns this element tree before disposal begins.
protected override void OnBeginDispose()
Overrides:
Moves the invalidation subscription from the previous element tree's control to the new tree's control.
protected override void OnElementTreeChanged(ComponentThemableElementTree previousTree)
The element tree being replaced, or null if there was none.
Overrides:
Regenerates the cached reflection when its source is dirty, then draws the vertically flipped and faded bitmap.
repaint Reflection Image