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
- 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>
13
14
<x : Array Type =" {x:Type x:String}" >
14
15
<x : String >Item1</x : String >
15
16
<x : String >Item2</x : String >
16
17
<x : String >Item3</x : String >
17
18
</x : Array >
18
- </CarouselView .ItemsSource>
19
- <CarouselView .ItemsLayout>
19
+ </local : CarouselView2 .ItemsSource>
20
+ <local : CarouselView2 .ItemsLayout>
20
21
<LinearItemsLayout ItemSpacing =" 5"
21
22
Orientation =" Horizontal"
22
23
SnapPointsAlignment =" Center"
23
24
SnapPointsType =" MandatorySingle" />
24
- </CarouselView .ItemsLayout>
25
- <CarouselView .ItemTemplate>
25
+ </local : CarouselView2 .ItemsLayout>
26
+ <local : CarouselView2 .ItemTemplate>
26
27
<DataTemplate
27
28
x : DataType =" {x:Null}" >
28
29
<Border BackgroundColor =" Red"
100
101
</Grid >
101
102
</Border >
102
103
</DataTemplate >
103
- </CarouselView .ItemTemplate>
104
- </CarouselView >
104
+ </local : CarouselView2 .ItemTemplate>
105
+ </local : CarouselView2 >
105
106
</Grid >
106
107
</ContentPage >
0 commit comments