You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
5.8 KiB
102 lines
5.8 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="Ohara.ModalPersonnage"
|
|
Title="ModalPersonnage"
|
|
BackgroundColor="#e2edf1"
|
|
Shell.PresentationMode="ModalAnimated">
|
|
<ScrollView>
|
|
<FlexLayout AlignItems="End" Wrap="Wrap" Direction="Row" JustifyContent="Center" HorizontalOptions="Center" VerticalOptions="Center" >
|
|
<VerticalStackLayout Spacing="4" Margin="2">
|
|
<Frame Style="{StaticResource frameModif}">
|
|
<HorizontalStackLayout HorizontalOptions="Center">
|
|
<Label Text="Nom :" FontAttributes="Bold"/>
|
|
<Entry Text="{Binding Nom}" WidthRequest="170" Placeholder="Nom de l'objet ..." PlaceholderColor="LightGrey"/>
|
|
</HorizontalStackLayout>
|
|
</Frame>
|
|
<Grid>
|
|
<Frame Padding="0" IsClippedToBounds="True">
|
|
|
|
<Image x:Name="image" Source="{Binding Image}" WidthRequest="300" HeightRequest="300" Grid.Row="2" Grid.Column="1"/>
|
|
|
|
</Frame>
|
|
<Button Text="Choisir une image ..." Clicked="ButtonImage_Clicked" Grid.Row="2" VerticalOptions="End" />
|
|
</Grid>
|
|
|
|
<Frame Style="{StaticResource frameModif}">
|
|
<HorizontalStackLayout HorizontalOptions="Center">
|
|
<Label Text="Prime :" FontAttributes="Bold"/>
|
|
<Entry Text="{Binding Prime}" />
|
|
</HorizontalStackLayout>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameModif}">
|
|
<HorizontalStackLayout HorizontalOptions="Center">
|
|
<Label Text="Epithete :" FontAttributes="Bold"/>
|
|
<Entry Text="{Binding Epithete}" />
|
|
</HorizontalStackLayout>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameModif}">
|
|
<HorizontalStackLayout HorizontalOptions="Center">
|
|
<Label Text="Taille :" FontAttributes="Bold"/>
|
|
<Entry Text="{Binding Taille}" />
|
|
</HorizontalStackLayout>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameModif}">
|
|
<HorizontalStackLayout HorizontalOptions="Center">
|
|
<Label Text="Origine :" FontAttributes="Bold"/>
|
|
<Entry Text="{Binding Origine}" />
|
|
</HorizontalStackLayout >
|
|
</Frame>
|
|
<Button Text="Annuler" Style="{StaticResource buttonRetirerFavInfo}" Clicked="ButtonAnnuler_Clicked" />
|
|
</VerticalStackLayout >
|
|
<VerticalStackLayout Spacing="5" Margin="2">
|
|
<Frame x:Name="framePicker" Style="{StaticResource frameModif}" HeightRequest="300">
|
|
|
|
<HorizontalStackLayout HorizontalOptions="Center">
|
|
<ScrollView Orientation="Vertical">
|
|
<CollectionView x:Name="listeEquipages" ItemsSource="{Binding Equipages}" SelectionChanged="AjoutEquipage" SelectionMode="Single">
|
|
<CollectionView.Header>
|
|
<Label Text="Equipage :"/>
|
|
</CollectionView.Header>
|
|
<CollectionView.ItemTemplate>
|
|
<DataTemplate>
|
|
<VerticalStackLayout>
|
|
<Label Text="{Binding Nom}"/>
|
|
</VerticalStackLayout>
|
|
</DataTemplate>
|
|
</CollectionView.ItemTemplate>
|
|
</CollectionView>
|
|
</ScrollView>
|
|
<ScrollView Orientation="Vertical">
|
|
<CollectionView x:Name="listeFruits" ItemsSource="{Binding Fruits}" SelectionChanged="AjoutFruit" SelectionMode="Multiple">
|
|
<CollectionView.Header>
|
|
<Label Text="Fruit(s) du démon :"/>
|
|
</CollectionView.Header>
|
|
<CollectionView.ItemTemplate>
|
|
<DataTemplate>
|
|
<VerticalStackLayout>
|
|
<Label Text="{Binding Nom}"/>
|
|
</VerticalStackLayout>
|
|
</DataTemplate>
|
|
</CollectionView.ItemTemplate>
|
|
</CollectionView>
|
|
</ScrollView>
|
|
</HorizontalStackLayout>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameModif}">
|
|
<HorizontalStackLayout HorizontalOptions="Center">
|
|
<Label Text="Biographie :" FontAttributes="Bold"/>
|
|
<Editor Text="{Binding Biographie}" WidthRequest="300" HeightRequest="200"/>
|
|
</HorizontalStackLayout>
|
|
</Frame>
|
|
<Frame Style="{StaticResource frameModif}">
|
|
<HorizontalStackLayout HorizontalOptions="Center">
|
|
<Label Text="Citation :" FontAttributes="Bold"/>
|
|
<Editor Text="{Binding Citation}" WidthRequest="300" HeightRequest="150"/>
|
|
</HorizontalStackLayout>
|
|
</Frame>
|
|
<Button Text="Confirmer" Style="{StaticResource buttonFavsInfo}" Clicked="ButtonConfirmer_Clicked" />
|
|
</VerticalStackLayout>
|
|
</FlexLayout>
|
|
</ScrollView>
|
|
</ContentPage> |