Class PageView
A PageView is a container that displays a single child at a time and provides a UI to navigate between them. It is similar to a ScrollView but here children are snapped to the container's edges.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class PageView : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
Name | Description |
---|---|
PageView() | Default constructor. |
Fields
Name | Description |
---|---|
pageIndicatorUssClassName | The styling class applied to the PageIndicator. |
swipeViewUssClassName | The styling class applied to the SwipeView. |
ussClassName | The main styling class of the PageView. This is the class that is used in the USS file. |
variantUssClassName | The styling class applied to the PageView depending on its direction. |
Properties
Name | Description |
---|---|
autoPlayDuration | The number of milliseconds between each automatic swipe. |
contentContainer | The content container of the PageView. |
direction | The orientation of the PageView. |
skipAnimationThreshold | A limit number of pages to keep animating the transition between pages. |
snapAnimationSpeed | The speed of the animation when snapping to a page. |
visibilityCount | The number of pages that are visible at the same time. |
wrap | Whether the PageView should wrap around when reaching the end of the list. |