Carousel is not working on windows platform ?
![](https://techprofile.blob.core.windows.net/images/HT4wG8TtG0OVjPjZBQZ7tA.png?8DABF5)
I have created carousel is working well on android platform. But it is not working on windows platform.
How to fix it or another solution for windows platform.
.NET MAUI
-
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,631 Reputation points • Microsoft Vendor
2024-07-02T04:17:12.18+00:00 Would you mind sharing some code snippets ((xml, model, viewmodel)) about the carsousel?
It's not clear how it doesn't work on Windows platform, could you describe in detail (MAUI version, VS version and other environment information) or attach some screenshots to clarify the problem?
-
Sami 861 Reputation points
2024-07-02T05:12:05.5733333+00:00 you can try simple one yourself on windows platform is not working
-
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,631 Reputation points • Microsoft Vendor
2024-07-02T06:37:45.7766667+00:00 What's the detailed issue? Is it not able to be swiped or the displaying issue? There is an official sample, I tested it, but it's not clear about your expected behavior.
-
Sami 861 Reputation points
2024-07-03T08:11:35.2733333+00:00 can you create for me tested carousel ( vertical ) is working with timer on windows platform
-
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,631 Reputation points • Microsoft Vendor
2024-07-04T09:49:28.1033333+00:00 I test a carousel on Windows platform, it cannot be dragged, do you mean this issue? Would you mind taking screenshots or videos to show the issues on Windows platform?
-
Sami 861 Reputation points
2024-07-04T09:52:27.4566667+00:00 it is not sliding vertical properly
-
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,631 Reputation points • Microsoft Vendor
2024-07-05T06:45:18.8533333+00:00 I tested a
CarouselView
in a new page, and set Orientation toVertical
, it works as excepted on Windows platform.Would you mind sharing the detailed MAUI version and Windows version? And could you describe how it doesn't work in detail? If it's possible, could you share some code snippets with me? Thanks in advance.
<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="CarouselSample.NewPage1" Title="NewPage1"> <CarouselView ItemsSource="{Binding Monkeys}"> <CarouselView.ItemsLayout> <LinearItemsLayout Orientation="Vertical"></LinearItemsLayout> </CarouselView.ItemsLayout> <CarouselView.ItemTemplate> <DataTemplate> <StackLayout> <Frame HasShadow="True" BorderColor="DarkGray" CornerRadius="5" Margin="20" HeightRequest="300" HorizontalOptions="Center" VerticalOptions="CenterAndExpand"> <StackLayout> <Label Text="{Binding Name}" FontAttributes="Bold" FontSize="18" HorizontalOptions="Center" VerticalOptions="Center" /> <Image BackgroundColor="Yellow" Aspect="AspectFill" HeightRequest="150" WidthRequest="150" HorizontalOptions="Center" /> <Label Text="{Binding Location}" HorizontalOptions="Center" /> <Label Text="{Binding Details}" FontAttributes="Italic" HorizontalOptions="Center" MaxLines="5" LineBreakMode="TailTruncation" /> </StackLayout> </Frame> </StackLayout> </DataTemplate> </CarouselView.ItemTemplate> </CarouselView> </ContentPage>
Sign in to comment