RadRotatorElement
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
public RadRotatorElement()
Properties
Gets or Sets the swap animation's frames number
public int AnimationFrames { get; set; }
Gets or Sets the index of the current item. Note: When setting the current item, the old and the new item will be swapped.
[Browsable(false)]
public int CurrentIndex { get; set; }
Gets the current item.
[Browsable(false)]
public RadItem CurrentItem { get; }
Gets or Sets the interval between consecutive rotation animations.
public int Interval { get; set; }
Gets the collection of RadItems that will be rotated.
public RadItemOwnerCollection Items { get; }
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)
public SizeF LocationAnimation { get; set; }
Gets or Sets value indicating whether opacity will be animated when switching frames
public bool OpacityAnimation { get; set; }
Gets the RadRotatorItem in the current RadElement
[Browsable(false)]
public RadRotatorItem RotatorItem { get; }
Gets or Sets value indicating whether the RadRotator is started/stopped.
[Browsable(false)]
public bool Running { get; set; }
Gets or sets whether RadRotator should stop rotating on MouseOver
public bool ShouldStopOnMouseOver { get; set; }
Methods
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Makes transition to the default element.
Initializes the fields of this instance with their default values.
protected override void InitializeFields()
Overrides:
Moves to the previous item.
Starts cycling through the elements in the Items collection
Stops the rotation process. If swap is under way, it will be completed.
public void Stop()
Events
Fires before RadItems' swap begins.
public event BeginRotateEventHandler BeginRotate
Fires when RadItems' swap has finished.
public event EventHandler EndRotate
Fires when an Item is clicked
public event EventHandler ItemClicked
Fires when RadRotator is started.
public event CancelEventHandler StartRotation
Fires when RadRotator is stopped.
public event EventHandler StopRotation