Skip to content

Update Carousel docs#935

Open
jsuarezruiz wants to merge 2 commits intomainfrom
update-carousel-docs
Open

Update Carousel docs#935
jsuarezruiz wants to merge 2 commits intomainfrom
update-carousel-docs

Conversation

@jsuarezruiz
Copy link
Copy Markdown
Member

Updated existing Carousel docs with new API features from PR #20659: IsSwipeEnabled, ViewportFraction, WrapSelection, IsSwiping, Rotate3DTransition, keyboard navigation (Home/End), and cross-references to PipsPager/CarouselPage.

Copy link
Copy Markdown
Contributor

@luke-whos-here luke-whos-here left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor comments, otherwise all good from me.

| `SelectedItem` | `object?` | `null` | The currently displayed item from the bound collection. |
| `ItemsSource` | `IEnumerable?` | `null` | The bound collection used as the data source. |
| `ItemTemplate` | `IDataTemplate?` | `null` | A `DataTemplate` applied to each item, allowing you to control how items look. |
| `ItemsPanel` | `ITemplate<Panel?>` | `VirtualizingCarouselPanel` | The container panel used to arrange items. See [ItemsControl](/controls/data-display/collections/itemscontrol) for details on customising the items panel. |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `ItemsPanel` | `ITemplate<Panel?>` | `VirtualizingCarouselPanel` | The container panel used to arrange items. See [ItemsControl](/controls/data-display/collections/itemscontrol) for details on customising the items panel. |
| `ItemsPanel` | `ITemplate<Panel?>` | `VirtualizingCarouselPanel` | The container panel used to arrange items. See [ItemsControl](/controls/data-display/collections/itemscontrol) for details on customizing the items panel. |

</Carousel>
```

When enabled, users can drag between pages with visual feedback. Flick gestures are supported where the swipe velocity determines whether the transition completes. The `IsSwiping` property is `true` while a gesture is in progress.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
When enabled, users can drag between pages with visual feedback. Flick gestures are supported where the swipe velocity determines whether the transition completes. The `IsSwiping` property is `true` while a gesture is in progress.
When enabled, users can drag between pages with visual feedback. Flick gestures are supported, requiring a threshold swipe velocity to determine whether the transition completes. The `IsSwiping` property is `true` while a gesture is in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants