MAUI Carouselview

1 Answer 1021 Views
ItemsControl
Rolf
Top achievements
Rank 1
Iron
Iron
Iron
Rolf asked on 28 Nov 2022, 03:22 PM

When running a Maui app on Windows, a page containing a CarouselView shows all items at once instead of having to swipe with the mouse to reveal each consecutive item.

Does Telerik offers an alternative?

Or can I create the same behaviour with an existing control?

1 Answer, 1 is accepted

Sort by
0
Lance | Senior Manager Technical Support
Telerik team
answered on 28 Nov 2022, 07:07 PM

Hi Rolf,

Telerik UI for MAUI has not yet fully ported the Telerik UI for Xamarin SlideView (this is what it sounds like you're looking for). For your convenience, I have opened a Feature Request on your behalf here => Port SlideView to .NET MAUI (telerik.com).

Custom Repurposing of Another Component

That being said, you may be able to use an existing control in a similar behavior. You might want to take a look at TabView if you want distinct views. start here at the .NET MAUI TabView Documentation - Overview.

If you don't like the tab headers, you do not have to show them, and only show the main content area instead. For example, take a look at the screenshot at the bottom of the TabView - Styling article.

Considerations

However, it is important to remember that without tab header, the user has no idea there are any additional items to swipe to. So, you'll want to be sure to give the user some sort of visual indicator that there are available items to the left/right of the currently visible item. This is not a feature of the TabView because it isn't designed to be a replacement for SwipeView or CarouselView.

You could add a custom UI element to indicate this state to the user. Possibly an arrow icon, with its IsVisible property bound to a view model property that indicates if there are any more items after the TabView's SelectedIndex. Alternatively, just use a Label that is directly bound to the SelectedIndex+1 value to indicate what "page" the user is looking at.

At the end of the day, you will need to do a little bit of tweaking and custom-dev work, but I do not see a reason why you cannot achieve the same end goal using the TabView.

Further Assistance with custom Development

If you do attempt to use the TabView in such a custom manner and run into trouble for which you'd like us to help, please open a Technical Support ticket for assistance. I recommend that approach because I cannot image the public forums being as much as a problem-solving resource for such a custom one-off implementation and I don't want to see accidentally you lose time in getting to a solution.

Regards,
Lance | Manager Technical Support
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ItemsControl
Asked by
Rolf
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or