HypernovaDesktop Components · docs
Binarymission
WPFCarousel › Carousel

Carousel

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Containers

The class implementing a powerful Carousel control.

public partial class Carousel : ItemsControl

Inherits from / implements: ItemsControl

Members at a glance

CarouselInitializes a new instance of the Carousel class.
CameraGets or sets the PerspectiveCamera object for the carousel.
CarouselViewport3DAmbientLightColorGets or sets the color of the carousel viewport 3D ambient light.
CarouselViewport3DCameraGets or sets the carousel viewport 3D PerspectiveCamera object.
DistanceFromCentreToUserGets or sets the distance from centre of the carousel viewport, to the viewing user.
GapBetweenCurrentDisplayFrontItemAndOthersGets or sets the gap between current display item in the front and others in the background.
GapBetweenItemsGets or sets the gap between items.
IsReflectionRenderingEnabledGets or sets a value indicating whether this instance is reflection rendering enabled.
ItemDimensionGets or sets the carousel item dimension.
ItemRenderAngleGets or sets the item render angle.
SelectedIndexGets or sets the index of the selected carousel item.
VisualChildrenCountGets how many visual children this element has.
ClearContainerForItemOverrideUndoes what PrepareContainerForItemOverride did, before the container is recycled.
OnApplyTemplateCalled once the control template has been applied, which is where the named parts of the template first become reachable.
OnMouseWheelRaises the MouseWheel event. Carousel overrides it so the control's own handling runs alongside the base behavior.
PrepareContainerForItemOverrideApplies this control's own settings to a container before the item it holds is shown.
SelectedIndexChangedOccurs when the selected index in the carousel has changed.
CameraPropertyCameraProperty DependencyProperty
CarouselViewport3DAmbientLightColorPropertyCarouselViewport3DAmbientLightColorProperty DependencyProperty
CarouselViewport3DCameraPropertyCarouselViewport3DCameraProperty DependencyProperty
DistanceFromCentreToUserPropertyDistanceFromCentreToUserProperty DependencyProperty
GapBetweenCurrentDisplayFrontItemAndOthersPropertyGapBetweenCurrentDisplayFrontItemAndOthersProperty DependencyProperty
GapBetweenItemsPropertyGapBetweenItemsProperty DependencyProperty
IsReflectionRenderingEnabledPropertyIsReflectionRenderingEnabledProperty DependencyProperty
ItemDimensionPropertyItemDimensionProperty DependencyProperty
ItemRenderAnglePropertyItemRenderAngleProperty DependencyProperty
MoveToLeftMoveToLeft routed command
MoveToRightMoveToRight routed command
SelectedIndexPropertySelectedIndexProperty DependencyProperty

Constructors

Properties

Camera

public PerspectiveCamera Camera

Gets or sets the PerspectiveCamera object for the carousel.

Value. The camera.

CarouselViewport3DAmbientLightColor

public Color CarouselViewport3DAmbientLightColor

Gets or sets the color of the carousel viewport 3D ambient light.

CarouselViewport3DCamera

public Camera CarouselViewport3DCamera

Gets or sets the carousel viewport 3D PerspectiveCamera object.

Value. The carousel viewport 3D camera.

DistanceFromCentreToUser

public double DistanceFromCentreToUser

Gets or sets the distance from centre of the carousel viewport, to the viewing user.

Value. The distance from centre to user.

GapBetweenCurrentDisplayFrontItemAndOthers

public double GapBetweenCurrentDisplayFrontItemAndOthers

Gets or sets the gap between current display item in the front and others in the background.

Value. The gap between current display front item and others.

GapBetweenItems

public double GapBetweenItems

Gets or sets the gap between items.

Value. The gap between items.

IsReflectionRenderingEnabled

public bool IsReflectionRenderingEnabled

Gets or sets a value indicating whether this instance is reflection rendering enabled.

Value. true if this instance is reflection rendering enabled; otherwise, false .

ItemDimension

public Size ItemDimension

Gets or sets the carousel item dimension.

Value. The item dimension.

ItemRenderAngle

public double ItemRenderAngle

Gets or sets the item render angle.

Value. The item render angle.

SelectedIndex

public int SelectedIndex

Gets or sets the index of the selected carousel item.

Value. The index of the selected carousel item.

VisualChildrenCount

protected override int VisualChildrenCount

Gets how many visual children this element has.

Methods

ClearContainerForItemOverride

protected override void ClearContainerForItemOverride(DependencyObject element, object item)

Undoes what PrepareContainerForItemOverride did, before the container is recycled.

OnApplyTemplate

public override void OnApplyTemplate()

Called once the control template has been applied, which is where the named parts of the template first become reachable.

OnMouseWheel

protected override void OnMouseWheel(MouseWheelEventArgs e)

Raises the MouseWheel event. Carousel overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

PrepareContainerForItemOverride

protected override void PrepareContainerForItemOverride(DependencyObject element, object item)

Applies this control's own settings to a container before the item it holds is shown.

Events

SelectedIndexChanged

public event EventHandler SelectedIndexChanged

Occurs when the selected index in the carousel has changed.

Fields

CameraProperty

public static readonly DependencyProperty CameraProperty

CameraProperty DependencyProperty

CarouselViewport3DAmbientLightColorProperty

public static readonly DependencyProperty CarouselViewport3DAmbientLightColorProperty

CarouselViewport3DAmbientLightColorProperty DependencyProperty

CarouselViewport3DCameraProperty

public static readonly DependencyProperty CarouselViewport3DCameraProperty

CarouselViewport3DCameraProperty DependencyProperty

DistanceFromCentreToUserProperty

public static readonly DependencyProperty DistanceFromCentreToUserProperty

DistanceFromCentreToUserProperty DependencyProperty

GapBetweenCurrentDisplayFrontItemAndOthersProperty

public static readonly DependencyProperty GapBetweenCurrentDisplayFrontItemAndOthersProperty

GapBetweenCurrentDisplayFrontItemAndOthersProperty DependencyProperty

GapBetweenItemsProperty

public static readonly DependencyProperty GapBetweenItemsProperty

GapBetweenItemsProperty DependencyProperty

IsReflectionRenderingEnabledProperty

public static readonly DependencyProperty IsReflectionRenderingEnabledProperty

IsReflectionRenderingEnabledProperty DependencyProperty

ItemDimensionProperty

public static readonly DependencyProperty ItemDimensionProperty

ItemDimensionProperty DependencyProperty

ItemRenderAngleProperty

public static readonly DependencyProperty ItemRenderAngleProperty

ItemRenderAngleProperty DependencyProperty

MoveToLeft

public static RoutedCommand MoveToLeft

MoveToLeft routed command

MoveToRight

public static RoutedCommand MoveToRight

MoveToRight routed command

SelectedIndexProperty

public static readonly DependencyProperty SelectedIndexProperty

SelectedIndexProperty DependencyProperty