11<?xml version =" 1.0" encoding =" utf-8" ?>
22<ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
33 xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4+ xmlns : local =" clr-namespace:Maui.Controls.Sample"
45 x : Class =" Maui.Controls.Sample.Issues.Issue25192" >
56 <Grid >
6- <CarouselView Margin =" 2,9,2,20"
7- HeightRequest =" 180"
8- Loop =" False"
9- PeekAreaInsets =" 20"
10- VerticalOptions =" End"
11- HorizontalScrollBarVisibility =" Never" >
12- <CarouselView .ItemsSource>
7+ <local : CarouselView2 Margin =" 2,9,2,20"
8+ HeightRequest =" 180"
9+ Loop =" False"
10+ PeekAreaInsets =" 20"
11+ VerticalOptions =" End"
12+ HorizontalScrollBarVisibility =" Never" >
13+ <local : CarouselView2 .ItemsSource>
1314 <x : Array Type =" {x:Type x:String}" >
1415 <x : String >Item1</x : String >
1516 <x : String >Item2</x : String >
1617 <x : String >Item3</x : String >
1718 </x : Array >
18- </CarouselView .ItemsSource>
19- <CarouselView .ItemsLayout>
19+ </local : CarouselView2 .ItemsSource>
20+ <local : CarouselView2 .ItemsLayout>
2021 <LinearItemsLayout ItemSpacing =" 5"
2122 Orientation =" Horizontal"
2223 SnapPointsAlignment =" Center"
2324 SnapPointsType =" MandatorySingle" />
24- </CarouselView .ItemsLayout>
25- <CarouselView .ItemTemplate>
25+ </local : CarouselView2 .ItemsLayout>
26+ <local : CarouselView2 .ItemTemplate>
2627 <DataTemplate
2728 x : DataType =" {x:Null}" >
2829 <Border BackgroundColor =" Red"
100101 </Grid >
101102 </Border >
102103 </DataTemplate >
103- </CarouselView .ItemTemplate>
104- </CarouselView >
104+ </local : CarouselView2 .ItemTemplate>
105+ </local : CarouselView2 >
105106 </Grid >
106107</ContentPage >
0 commit comments