Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
<ContentPage
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Maui.Controls.Sample"
x:Class="Maui.Controls.Sample.CarouselViewCoreGalleryPage"
Title="CarouselView Core Gallery">
Title="CarouselView Core Gallery"
x:DataType="local:CarouselViewModel">
<ContentPage.Content>
<Grid
Margin="0,0,0,10">
Expand All @@ -25,6 +27,7 @@
Grid.Column="0" />
<Label
Text="{Binding Path=Position, Source={x:Reference Name=carousel}}"
x:DataType="CarouselView"
AutomationId="lblPosition"
Grid.Row="1"
Grid.Column="1" />
Expand All @@ -33,7 +36,8 @@
Grid.Row="2"
Grid.Column="0" />
<Label
Text="{Binding Path=CurrentItem.Index , Source={x:Reference Name=carousel}}"
Text="{Binding Index, x:DataType=local:CarouselItem}"
BindingContext="{Binding CurrentItem, Source={x:Reference Name=carousel}, x:DataType=CarouselView}"
AutomationId="lblCurrentItem"
Grid.Row="2"
Grid.Column="1" />
Expand Down Expand Up @@ -81,7 +85,7 @@
Position="{Binding Position}"
CurrentItem="{Binding Selected}">
<CarouselView.ItemTemplate>
<DataTemplate>
<DataTemplate x:DataType="local:CarouselItem">
<Border
x:Name="frame"
Padding="10"
Expand Down