44 xmlns : local =" clr-namespace:Maui.Controls.Sample"
55 x : Class =" Maui.Controls.Sample.Issues.Issue25192" >
66 <Grid >
7- <!-- This functionality failed in CarouselView2. Reference: https://github.com/dotnet/maui/issues/27025 -->
8- <!-- TODO: Replace CarouselView1 with CarouselView once the issues mentioned in the GitHub issue are resolved. -->
9- <local : CarouselView1 Margin =" 2,9,2,20"
7+ <CarouselView Margin =" 2,9,2,20"
108 HeightRequest =" 180"
119 Loop =" False"
1210 PeekAreaInsets =" 20"
1311 VerticalOptions =" End"
1412 HorizontalScrollBarVisibility =" Never" >
15- <local : CarouselView1 .ItemsSource>
13+ <CarouselView .ItemsSource>
1614 <x : Array Type =" {x:Type x:String}" >
1715 <x : String >Item1</x : String >
1816 <x : String >Item2</x : String >
1917 <x : String >Item3</x : String >
2018 </x : Array >
21- </local : CarouselView1 .ItemsSource>
22- <local : CarouselView1 .ItemsLayout>
19+ </CarouselView .ItemsSource>
20+ <CarouselView .ItemsLayout>
2321 <LinearItemsLayout ItemSpacing =" 5"
2422 Orientation =" Horizontal"
2523 SnapPointsAlignment =" Center"
2624 SnapPointsType =" MandatorySingle" />
27- </local : CarouselView1 .ItemsLayout>
28- <local : CarouselView1 .ItemTemplate>
25+ </CarouselView .ItemsLayout>
26+ <CarouselView .ItemTemplate>
2927 <DataTemplate
3028 x : DataType =" {x:Null}" >
3129 <Border BackgroundColor =" Red"
103101 </Grid >
104102 </Border >
105103 </DataTemplate >
106- </local : CarouselView1 .ItemTemplate>
107- </local : CarouselView1 >
104+ </CarouselView .ItemTemplate>
105+ </CarouselView >
108106 </Grid >
109107</ContentPage >
0 commit comments