New to Telerik UI for WPFStart a free 30-day trial

Represents a specialized panel that arranges its child elements along a specified path, enabling smooth navigation and customizable visual effects. The RadCarouselPanel supports touch gestures for swiping through items, and allows for various animation effects such as scaling, opacity, and skewing. It provides properties for configuring the number of items displayed, the items moved per swipe, and the animation duration. This panel is typically used for creating carousel-like UI components, allowing items to be brought into view dynamically, while maintaining scroll capabilities and responsive user interaction.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
[TelerikToolboxCategory("Navigation")]
public class RadCarouselPanel : VirtualizingPanel, IScrollInfo

Inheritance: objectRadCarouselPanel

Implements: IScrollInfo

Constructors

Initializes a new instance of the RadCarouselPanel class.

C#
public RadCarouselPanel()

Fields

AutoLoadItemsProperty

DependencyProperty

Identifies the AutoLoadItems dependency property.

C#
public static readonly DependencyProperty AutoLoadItemsProperty

Identifies the IsAnimatingChanged routed event.

C#
public static readonly RoutedEvent IsAnimatingChangedEvent

IsAnimatingProperty

DependencyProperty

Identifies the IsAnimating dependency property.

C#
public static readonly DependencyProperty IsAnimatingProperty

IsContinuousProperty

DependencyProperty

Gets or sets a value indicating whether items should wrap around after the last item is displayed.

C#
public static readonly DependencyProperty IsContinuousProperty

IsOpacityEnabledProperty

DependencyProperty

Identifies the IsOpacityEnabled dependency property.

C#
public static readonly DependencyProperty IsOpacityEnabledProperty

IsPathVisibleProperty

DependencyProperty

Identifies the IsPathVisible dependency property.

C#
public static readonly DependencyProperty IsPathVisibleProperty

IsScalingEnabledProperty

DependencyProperty

Identifies the IsScalingEnabled dependency property.

C#
public static readonly DependencyProperty IsScalingEnabledProperty

IsSelectedTopItemProperty

DependencyProperty

Identifies the IsSelectedTopItem dependency property.

C#
public static readonly DependencyProperty IsSelectedTopItemProperty

IsSkewAngleXEnabledProperty

DependencyProperty

Identifies the IsSkewAngleXEnabled dependency property.

C#
public static readonly DependencyProperty IsSkewAngleXEnabledProperty

IsSkewAngleYEnabledProperty

DependencyProperty

Identifies the IsSkewAngleYEnabled dependency property.

C#
public static readonly DependencyProperty IsSkewAngleYEnabledProperty

Identifies the ItemsMovementAnimationDuration dependency property.

C#
public static readonly DependencyProperty ItemsMovementAnimationDurationProperty

ItemsPerPageProperty

DependencyProperty

Identifies the ItemsPerPage dependency property.

C#
public static readonly DependencyProperty ItemsPerPageProperty

ItemsPerSwipeProperty

DependencyProperty

Identifies the ItemsPerSwipe dependency property.

C#
public static readonly DependencyProperty ItemsPerSwipeProperty

OpacityStopsProperty

DependencyProperty

Identifies the OpacityStops dependency property.

C#
public static readonly DependencyProperty OpacityStopsProperty

PathPaddingProperty

DependencyProperty

Identifies the PathPadding dependency property.

C#
public static readonly DependencyProperty PathPaddingProperty

ScaleStopsProperty

DependencyProperty

Identifies the ScaleStops dependency property.

C#
public static readonly DependencyProperty ScaleStopsProperty

Identifies the SelectedIsTopItem routed event.

C#
public static readonly RoutedEvent SelectedIsTopItemEvent

SkewAngleXStopsProperty

DependencyProperty

Identifies the SkewAngleXStops dependency property.

C#
public static readonly DependencyProperty SkewAngleXStopsProperty

SkewAngleYStopsProperty

DependencyProperty

Identifies the SkewAngleYStops dependency property.

C#
public static readonly DependencyProperty SkewAngleYStopsProperty

Identifies the TopContainerChanged routed event.

C#
public static readonly RoutedEvent TopContainerChangedEvent

TopContainerProperty

DependencyProperty

Identifies the TopContainer dependency property.

C#
public static readonly DependencyProperty TopContainerProperty

TopItemPathFractionProperty

DependencyProperty

Identifies the TopItemPathFraction dependency property.

C#
public static readonly DependencyProperty TopItemPathFractionProperty

Properties

Gets or sets a value that indicates whether items will be loaded automatically when the carousel is shown.

C#
public bool AutoLoadItems { get; set; }

Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.

C#
public bool CanHorizontallyScroll { get; set; }
Property Value:

true if scrolling is possible; otherwise, false. This property has no default value.

Gets or sets a value that indicates whether scrolling on the vertical axis is possible.

C#
public bool CanVerticallyScroll { get; set; }
Property Value:

true if scrolling is possible; otherwise, false. This property has no default value.

Gets the vertical size of the extent.

C#
public double ExtentHeight { get; }

Gets the horizontal size of the extent.

C#
public double ExtentWidth { get; }

Gets the horizontal offset of the scrolled content.

C#
public double HorizontalOffset { get; }

Gets a value indicating whether the panel is currently animating.

C#
public bool IsAnimating { get; }
Property Value:

true if the panel is animating; otherwise, false.

Gets or sets a value indicating whether items should wrap around after the last item is displayed.

C#
public bool IsContinuous { get; set; }
Property Value:

true Items should wrap around; otherwise, false.

Gets or sets a value indicating whether opacity effect is enabled.

C#
public bool IsOpacityEnabled { get; set; }
Property Value:

true if opacity effect is enabled; otherwise, false.

Gets or sets a value that indicates whether the carousel path is visible.

C#
public bool IsPathVisible { get; set; }

Gets or sets a value indicating whether scale effect is enabled.

C#
public bool IsScalingEnabled { get; set; }
Property Value:

true if scale effect is enabled; otherwise, false.

Gets a value indicating whether the selected items has been brought into view.

C#
public bool IsSelectedTopItem { get; set; }
Property Value:

true if this the selected item's path fraction matches the TopItemPathFractionProperty; otherwise, false.

Gets or sets a value indicating whether this instance is skew angle X enabled.

C#
public bool IsSkewAngleXEnabled { get; set; }
Property Value:

true if this instance is skew angle X enabled; otherwise, false.

Gets or sets a value indicating whether this instance is skew angle Y enabled.

C#
public bool IsSkewAngleYEnabled { get; set; }
Property Value:

true if this instance is skew angle Y enabled; otherwise, false.

Gets or sets the duration of the item movement animation.

C#
public TimeSpan ItemsMovementAnimationDuration { get; set; }

Gets or sets the number of items per page.

C#
public int ItemsPerPage { get; set; }

Gets or sets the number of items to be scrolled per swipe gesture.

C#
public int ItemsPerSwipe { get; set; }

Gets or sets the opacity stops.

C#
public PathStopCollection OpacityStops { get; set; }
Property Value:

The opacity stops.

Path

Path

Gets or sets the carousel path.

C#
public Path Path { get; set; }

PathPadding

Thickness

Gets or sets the path padding property.

C#
public Thickness PathPadding { get; set; }
Property Value:

The path padding.

Gets or sets the scale stops.

C#
public PathStopCollection ScaleStops { get; set; }
Property Value:

The scale stops.

ScrollOwner

ScrollViewer

Gets or sets a ScrollViewer element that controls scrolling behavior.

C#
public ScrollViewer ScrollOwner { get; set; }
Property Value:

A ScrollViewer element that controls scrolling behavior. This property has no default value.

Gets or sets the skew angle X stops.

C#
public PathStopCollection SkewAngleXStops { get; set; }
Property Value:

The skew angle X stops.

Gets or sets the skew angle Y stops.

C#
public PathStopCollection SkewAngleYStops { get; set; }
Property Value:

The skew angle Y stops.

TopContainer

UIElement

Gets the container that has the largest ZIndex.

C#
public UIElement TopContainer { get; }
Property Value:

The top container.

Gets or sets the top item path fraction.

C#
public double TopItemPathFraction { get; set; }
Property Value:

The top item path fraction.

Gets the vertical offset of the scrolled content.

C#
public double VerticalOffset { get; }
Property Value:

A double that represents, in device independent pixels, the vertical offset of the scrolled content. Valid values are between zero and the minus the . This property has no default value.

Gets the vertical size of the viewport for this content.

C#
public double ViewportHeight { get; }
Property Value:

A double that represents, in device independent pixels, the vertical size of the viewport for this content. This property has no default value.

Gets the horizontal size of the viewport for this content.

C#
public double ViewportWidth { get; }
Property Value:

A double that represents, in device independent pixels, the vertical size of the viewport for this content. This property has no default value.

Methods

When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

C#
protected override Size ArrangeOverride(Size finalSize)
Parameters:finalSizeSize

The final area within the parent that this element should use to arrange itself and its children.

Returns:

Size

The actual size used.

Brings the specified data item into view.

C#
public void BringDataItemIntoView(object dataItem)
Parameters:dataItemobject

The data item to bring into view.

When implemented in a derived class, generates the item at the specified index location and makes it visible.

C#
protected override void BringIndexIntoView(int index)
Parameters:indexint

The index position of the item that is generated and made visible.

Brings the specified item into view.

C#
public void BringItemIntoView(UIElement item, bool isItemSelected)
Parameters:itemUIElement

The item to bring into view.

isItemSelectedbool

Determines whether the item is currently selected.

Clears the item that RadCarouselPanel considers as selected.

C#
public void ClearSelectedItem()

Overrides the default UIElementCollection .

C#
protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
Parameters:logicalParentFrameworkElement

The logical parent element of the collection to be created.

Returns:

UIElementCollection

An ordered collection of elements that have the specified logical parent.

Scrolls down within content by one logical unit.

C#
public void LineDown()

Scrolls left within content by one logical unit.

C#
public void LineLeft()

Scrolls right within content by one logical unit.

C#
public void LineRight()

Scrolls up within content by one logical unit.

C#
public void LineUp()

Forces content to scroll until the coordinate space of a Visual object is visible.

C#
public Rect MakeVisible(Visual visual, Rect rectangle)
Parameters:visualVisual

A Visual that becomes visible.

rectangleRect

A bounding rectangle that identifies the coordinate space to make visible.

Returns:

Rect

A Rect that is visible.

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSize

The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

Returns:

Size

The size that this element determines it needs during layout, based on its calculations of child element sizes.

Scrolls down within content after a user clicks the wheel button on a mouse.

C#
public void MouseWheelDown()

Scrolls left within content after a user clicks the wheel button on a mouse.

C#
public void MouseWheelLeft()

Scrolls right within content after a user clicks the wheel button on a mouse.

C#
public void MouseWheelRight()

Scrolls up within content after a user clicks the wheel button on a mouse.

C#
public void MouseWheelUp()

Moves by a specified number of items.

C#
public void MoveBy(int displacement)
Parameters:displacementint

The number of items to move by. Positive value will move the items forward, while negative one will move the items backwards.

Called when IsAnimating property is changed.

C#
protected virtual void OnIsAnimatingChanged(bool oldValue, bool newValue)
Parameters:oldValuebool

If set to true [old value].

newValuebool

If set to true [new value].

Indicates that the property value has changed.

C#
protected override void OnIsItemsHostChanged(bool oldIsItemsHost, bool newIsItemsHost)
Parameters:oldIsItemsHostbool

The old property value.

newIsItemsHostbool

The new property value.

Called when the collection that is associated with the for this Panel changes.

C#
protected override void OnItemsChanged(object sender, ItemsChangedEventArgs args)
Parameters:senderobject

The object that raised the event.

argsItemsChangedEventArgs

Provides data for the event.

Draws the content of a DrawingContext object during the render pass of a Panel element.

C#
protected override void OnRender(DrawingContext dc)
Parameters:dcDrawingContext

The DrawingContext object to draw.

Called when TopContainer property is changed.

C#
protected virtual void OnTopContainerChanged(UIElement oldValue, UIElement newValue)
Parameters:oldValueUIElement

The old value.

newValueUIElement

The new value.

Scrolls down within content by one page.

C#
public void PageDown()

Scrolls left within content by one page.

C#
public void PageLeft()

Scrolls right within content by one page.

C#
public void PageRight()

Scrolls up within content by one page.

C#
public void PageUp()

Sets the amount of horizontal offset.

C#
public void SetHorizontalOffset(double offset)
Parameters:offsetdouble

The degree to which content is horizontally offset from the containing viewport.

Sets the amount of vertical offset.

C#
public void SetVerticalOffset(double offset)
Parameters:offsetdouble

The degree to which content is vertically offset from the containing viewport.

Events

IsAnimatingChanged

RoutedEventHandler

Occurs when IsAnimating property is changed.

C#
public event RoutedEventHandler IsAnimatingChanged

SelectedIsTopItem

RoutedEventHandler

Occurs when [selected is top item].

C#
public event RoutedEventHandler SelectedIsTopItem

TopContainerChanged

RoutedEventHandler

Occurs when TopContainer property is changed.

C#
public event RoutedEventHandler TopContainerChanged
In this article
DefinitionConstructorsRadCarouselPanel()FieldsAutoLoadItemsPropertyIsAnimatingChangedEventIsAnimatingPropertyIsContinuousPropertyIsOpacityEnabledPropertyIsPathVisiblePropertyIsScalingEnabledPropertyIsSelectedTopItemPropertyIsSkewAngleXEnabledPropertyIsSkewAngleYEnabledPropertyItemsMovementAnimationDurationPropertyItemsPerPagePropertyItemsPerSwipePropertyOpacityStopsPropertyPathPaddingPropertyScaleStopsPropertySelectedIsTopItemEventSkewAngleXStopsPropertySkewAngleYStopsPropertyTopContainerChangedEventTopContainerPropertyTopItemPathFractionPropertyPropertiesAutoLoadItemsCanHorizontallyScrollCanVerticallyScrollExtentHeightExtentWidthHorizontalOffsetIsAnimatingIsContinuousIsOpacityEnabledIsPathVisibleIsScalingEnabledIsSelectedTopItemIsSkewAngleXEnabledIsSkewAngleYEnabledItemsMovementAnimationDurationItemsPerPageItemsPerSwipeOpacityStopsPathPathPaddingScaleStopsScrollOwnerSkewAngleXStopsSkewAngleYStopsTopContainerTopItemPathFractionVerticalOffsetViewportHeightViewportWidthMethodsArrangeOverride(Size)BringDataItemIntoView(object)BringIndexIntoView(int)BringItemIntoView(UIElement, bool)ClearSelectedItem()CreateUIElementCollection(FrameworkElement)LineDown()LineLeft()LineRight()LineUp()MakeVisible(Visual, Rect)MeasureOverride(Size)MouseWheelDown()MouseWheelLeft()MouseWheelRight()MouseWheelUp()MoveBy(int)OnIsAnimatingChanged(bool, bool)OnIsItemsHostChanged(bool, bool)OnItemsChanged(object, ItemsChangedEventArgs)OnRender(DrawingContext)OnTopContainerChanged(UIElement, UIElement)PageDown()PageLeft()PageRight()PageUp()SetHorizontalOffset(double)SetVerticalOffset(double)EventsIsAnimatingChangedSelectedIsTopItemTopContainerChanged
Not finding the help you need?
Contact Support