Class RadRotatorItem
The RadItem that implements the actual RadRotator's functionality.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadRotatorItem : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Constructors
RadRotatorItem()
Declaration
public RadRotatorItem()
Fields
fadeInProperty
Properties
AnimationFrames
Gets or Sets the swap animation's frames number
Declaration
public int AnimationFrames { get; set; }
Property Value
|
System.Int32
|
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
public int CurrentIndex { get; set; }
Property Value
|
System.Int32
|
CurrentItem
DefaultItem
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(Int32)
Declaration
public RadItem DefaultItem { get; set; }
Property Value
|
RadItem
|
fadeIn
Declaration
public List<AnimatedPropertySetting> fadeIn { get; set; }
Property Value
|
System.Collections.Generic.List<AnimatedPropertySetting>
|
Interval
Gets or Sets the interval between consecutive rotation animations.
Declaration
public int Interval { get; set; }
Property Value
|
System.Int32
|
Items
Gets the collection of RadItems that will be rotated.
Declaration
public RadItemOwnerCollection Items { get; }
Property Value
|
RadItemOwnerCollection
|
LocationAnimation
Gets or Sets value defining the initial position of the incomming 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 incomming item) or after it ends (for the outgoing item)
Declaration
public SizeF LocationAnimation { get; set; }
Property Value
|
System.Drawing.SizeF
|
OpacityAnimation
Gets or Sets value indicating whether opacity will be animated when switching frames
Declaration
public bool OpacityAnimation { get; set; }
Property Value
|
System.Boolean
|
Running
Gets or Sets value indicating whether the RadRotator is started/stopped.
Declaration
public bool Running { get; set; }
Property Value
|
System.Boolean
|
ShouldStopOnMouseOver
Gets or sets whether RadRotator should stop rotating on MouseOver
Declaration
public bool ShouldStopOnMouseOver { get; set; }
Property Value
|
System.Boolean
|
Methods
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
Goto(Int32)
Initiates swap between the current item and the one whose index is supplied.
Declaration
public bool Goto(int index)
Parameters
|
System.Int32
index
the index of the item in the Items collection. The index of the home element is -1. |
Returns
|
System.Boolean
true on successful swap |
GotoDefault()
Makes transition to the default element.
Declaration
public bool GotoDefault()
Returns
|
System.Boolean
|
InitializeFields()
Next()
Moves to the next item,
Declaration
public bool Next()
Returns
|
System.Boolean
|
OnBeginRotate(Object, BeginRotateEventArgs)
Declaration
protected virtual void OnBeginRotate(object sender, BeginRotateEventArgs e)
Parameters
|
System.Object
sender
|
|
BeginRotateEventArgs
e
|
OnBubbleEvent(RadElement, RoutedEventArgs)
Declaration
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
Parameters
|
RadElement
sender
|
|
RoutedEventArgs
args
|
Overrides
OnEndRotate(Object, EventArgs)
Declaration
protected virtual void OnEndRotate(object sender, EventArgs e)
Parameters
|
System.Object
sender
|
|
System.EventArgs
e
|
OnItemClicked(Object, EventArgs)
Declaration
protected virtual void OnItemClicked(object sender, EventArgs e)
Parameters
|
System.Object
sender
|
|
System.EventArgs
e
|
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
|
System.EventArgs
e
|
Overrides
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
|
System.EventArgs
e
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
|
RadPropertyChangedEventArgs
e
|
Overrides
OnStartRotation(Object, CancelEventArgs)
Declaration
protected virtual void OnStartRotation(object sender, CancelEventArgs e)
Parameters
|
System.Object
sender
|
|
System.ComponentModel.CancelEventArgs
e
|
OnStopRotation(Object, EventArgs)
Declaration
protected virtual void OnStopRotation(object sender, EventArgs e)
Parameters
|
System.Object
sender
|
|
System.EventArgs
e
|
Previous()
Moves to the previous item.
Declaration
public bool Previous()
Returns
|
System.Boolean
|
Start(Boolean)
Starts cycling through the elements in the Items collection
Declaration
public bool Start(bool startImmediately)
Parameters
|
System.Boolean
startImmediately
set to true to initiate rotation immediately, or set to false to rotate after the time Interval |
Returns
|
System.Boolean
there are no elements to rotate (Items collection is empty) |
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 Type
|
BeginRotateEventHandler
|
EndRotate
Fires when RadItems' swap has finished.
Declaration
public event EventHandler EndRotate
Event Type
|
System.EventHandler
|
ItemClicked
Fires when an Item is clicked
Declaration
public event EventHandler ItemClicked
Event Type
|
System.EventHandler
|
StartRotation
Fires when RadRotator is started.
Declaration
public event CancelEventHandler StartRotation
Event Type
|
System.ComponentModel.CancelEventHandler
|
StopRotation
Fires when RadRotator is stopped.
Declaration
public event EventHandler StopRotation
Event Type
|
System.EventHandler
|