ClassRadRotatorElement
The RadItem containing RadRotatorItem, Border and Fill primitives
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadRotatorElement : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadRotatorElement
Implements:
Inherited Members
Constructors
RadRotatorElement()
Declaration
public RadRotatorElement()
Properties
AnimationFrames
Gets or Sets the swap animation's frames number
CurrentIndex
Gets or Sets the index of the current item. Note: When setting the current item, the old and the new item will be swapped.
Declaration
[Browsable(false)]
public int CurrentIndex { get; set; }
Property Value
CurrentItem
Gets the current item.
Declaration
[Browsable(false)]
public RadItem CurrentItem { get; }
Property Value
DefaultItem
Interval
Gets or Sets the interval between consecutive rotation animations.
Items
Gets the collection of RadItems that will be rotated.
Declaration
public RadItemOwnerCollection Items { get; }
Property Value
LocationAnimation
Gets or Sets value defining the initial position of the incoming item and the final position of the outgoing item. Note: The position is relative, in the range [-1, 1] for each of the components (X, Y). Value of positive or negative 1 means that the object will not be in the visible area before the animation begins (for the incoming item) or after it ends (for the outgoing item)
OpacityAnimation
Gets or Sets value indicating whether opacity will be animated when switching frames
RotatorItem
Gets the RadRotatorItem in the current RadElement
Declaration
[Browsable(false)]
public RadRotatorItem RotatorItem { get; }
Property Value
Running
Gets or Sets value indicating whether the RadRotator is started/stopped.
Declaration
[Browsable(false)]
public bool Running { get; set; }
Property Value
ShouldStopOnMouseOver
Gets or sets whether RadRotator should stop rotating on MouseOver
Methods
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
Goto(int)
Initiates swap between the current item and the one whose index is supplied.
GotoDefault()
Makes transition to the default element.
InitializeFields()
Initializes the fields of this instance with their default values.
Declaration
protected override void InitializeFields()
Overrides
Previous()
Moves to the previous item.
Start(bool)
Starts cycling through the elements in the Items collection
Stop()
Stops the rotation process. If swap is under way, it will be completed.
Declaration
public void Stop()
Events
BeginRotate
Fires before RadItems' swap begins.
Declaration
public event BeginRotateEventHandler BeginRotate
Event Value
ItemClicked
Fires when an Item is clicked
StartRotation
Fires when RadRotator is started.
Declaration
public event CancelEventHandler StartRotation
Event Value
StopRotation
Fires when RadRotator is stopped.