ClassRadRotatorItem
The RadItem that implements the actual RadRotator's functionality.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadRotatorItem : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadRotatorItem
Implements:
Inherited Members
Constructors
RadRotatorItem()
Declaration
public RadRotatorItem()
Fields
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 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)
OpacityAnimation
Gets or Sets value indicating whether opacity will be animated when switching frames
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
fadeIn
Declaration
public List<AnimatedPropertySetting> fadeIn { get; set; }
Property Value
List<AnimatedPropertySetting>
Methods
DisposeManagedResources()
Releases managed resources used by this element.
Declaration
protected override void DisposeManagedResources()
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
OnBeginRotate(object, BeginRotateEventArgs)
Declaration
protected virtual void OnBeginRotate(object sender, BeginRotateEventArgs e)
Parameters
sender
e
OnBubbleEvent(RadElement, RoutedEventArgs)
Declaration
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
Parameters
sender
args
Overrides
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
e
Overrides
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
e
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Called when a property value has changed, handling item-specific property change logic including text, visual state, and animation properties.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The property changed event arguments.
Overrides
OnStartRotation(object, CancelEventArgs)
Declaration
protected virtual void OnStartRotation(object sender, CancelEventArgs e)
Parameters
sender
e
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.