RadRotator
This control is transfers the web-based rotators' functionality to the Windows forms work space.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[RadToolboxItem(false)]
[Docking(DockingBehavior.Ask)]
public class RadRotator : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadRotator...
Implements:
Inherited Members
Constructors
Initializes the RadRotator control
public RadRotator()
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 RadItem that is to be displayed while loading the rest items. It is not cycled through when rotation starts. If you want to have initial item that will be cycled through, add it to the Items collection and advance to it using Goto(int)
[Browsable(false)]
[RadNewItem("DefaultItem", false)]
public RadItem DefaultItem { get; set; }
Gets the default size of the control.
protected override Size DefaultSize { get; }
Overrides:
Gets or Sets the interval between consecutive rotation animations.
public int Interval { get; set; }
Gets the collection of RadItems that will be rotated.
[Browsable(true)]
public RadItemCollection 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 instance of RadRotatorElement wrapped by this control. RadRotatorElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadRotator.
[Browsable(false)]
public RadRotatorElement RotatorElement { get; }
Gets or Sets value indicating whether the RadRotator is started/stopped.
public bool Running { get; set; }
Gets or sets whether RadRotator should stop rotating on MouseOver
[Browsable(true)]
public bool ShouldStopOnMouseOver { get; set; }
Methods
Initializes the child Items
protected override void CreateChildItems(RadElement parent)
Overrides:
Makes transition to the default element.
public void GotoDefault()
protected override void OnThemeChanged()
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