1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4
+ xmlns : local =" clr-namespace:Maui.Controls.Sample"
4
5
x : Class =" Maui.Controls.Sample.Issues.Issue25192" >
5
6
<Grid >
6
- <CarouselView Margin =" 2,9,2,20"
7
+ <local : CarouselView2 Margin =" 2,9,2,20"
7
8
HeightRequest =" 180"
8
9
Loop =" False"
9
10
PeekAreaInsets =" 20"
10
11
VerticalOptions =" End" >
11
- <CarouselView .ItemsSource>
12
+ <local : CarouselView2 .ItemsSource>
12
13
<x : Array Type =" {x:Type x:String}" >
13
14
<x : String >Item1</x : String >
14
15
<x : String >Item2</x : String >
15
16
<x : String >Item3</x : String >
16
17
</x : Array >
17
- </CarouselView .ItemsSource>
18
- <CarouselView .ItemsLayout>
18
+ </local : CarouselView2 .ItemsSource>
19
+ <local : CarouselView2 .ItemsLayout>
19
20
<LinearItemsLayout ItemSpacing =" 5"
20
21
Orientation =" Horizontal"
21
22
SnapPointsAlignment =" Center"
22
23
SnapPointsType =" MandatorySingle" />
23
- </CarouselView .ItemsLayout>
24
- <CarouselView .ItemTemplate>
24
+ </local : CarouselView2 .ItemsLayout>
25
+ <local : CarouselView2 .ItemTemplate>
25
26
<DataTemplate
26
27
x : DataType =" {x:Null}" >
27
28
<Border BackgroundColor =" Red"
99
100
</Grid >
100
101
</Border >
101
102
</DataTemplate >
102
- </CarouselView .ItemTemplate>
103
- </CarouselView >
103
+ </local : CarouselView2 .ItemTemplate>
104
+ </local : CarouselView2 >
104
105
</Grid >
105
106
</ContentPage >
0 commit comments