🚧 Modification de la page de seltion map
continuous-integration/drone/push Build is passing Details

pull/95/head
Lucas DUFLOT 11 months ago
parent de321a0726
commit af6e9ec71c

@ -4,9 +4,11 @@
x:Class="Trek_12.Views.PageSelectMap" x:Class="Trek_12.Views.PageSelectMap"
Title="PageSelectMap"> Title="PageSelectMap">
<Grid RowDefinitions="*,auto"> <Grid RowDefinitions="*,auto">
<CarouselView ItemsSource="{Binding ListMap}" <CollectionView ItemsSource="{Binding ListMap}"
PeekAreaInsets="800"> ItemsLayout="HorizontalList"
<CarouselView.ItemTemplate> HorizontalOptions="Center"
SelectionMode="Single">
<CollectionView.ItemTemplate>
<DataTemplate> <DataTemplate>
<Frame HasShadow="True" <Frame HasShadow="True"
BorderColor="DarkGray" BorderColor="DarkGray"
@ -15,7 +17,8 @@
HeightRequest="300" HeightRequest="300"
WidthRequest="200" WidthRequest="200"
HorizontalOptions="Center" HorizontalOptions="Center"
VerticalOptions="CenterAndExpand"> VerticalOptions="CenterAndExpand"
x:Name="Frame">
<Grid RowDefinitions="auto,*"> <Grid RowDefinitions="auto,*">
<Label Text="{Binding Background}" <Label Text="{Binding Background}"
FontAttributes="Bold" FontAttributes="Bold"
@ -31,7 +34,19 @@
</Grid> </Grid>
</Frame> </Frame>
</DataTemplate> </DataTemplate>
</CarouselView.ItemTemplate> </CollectionView.ItemTemplate>
</CarouselView> </CollectionView>
<Button Text="Retour"
FontAttributes="Bold"
FontSize="Large"
Grid.Row="1"
HorizontalOptions="Start"
Margin="100"/>
<Button Text="Jouer"
FontAttributes="Bold"
FontSize="Large"
Grid.Row="1"
HorizontalOptions="End"
Margin="100"/>
</Grid> </Grid>
</ContentPage> </ContentPage>

@ -10,5 +10,7 @@ public partial class PageSelectMap : ContentPage
{ {
InitializeComponent(); InitializeComponent();
BindingContext = MyStub; BindingContext = MyStub;
} }
} }
Loading…
Cancel
Save