<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="MauiAppStock.Views.EditAssociationPage"
             xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
    <StackLayout Padding="20" Spacing="20">
        <Label Text="Modifier l'association" FontSize="24" HorizontalOptions="Center"/>
        <Label Text="Pièce:" FontAttributes="Bold"/>
        <Label Text="{Binding NomPiece}" />
        <Label Text="{Binding DescriptionPiece}" />
        <StackLayout Orientation="Horizontal" VerticalOptions="Center">
            <Label Text="Recommandée ?" VerticalOptions="Center"/>
            <Switch IsToggled="{Binding EstRecommandee}" />
        </StackLayout>
        <Button Text="Sauvegarder" Clicked="OnSaveClicked"/>
        <Button Text="Supprimer l'association" TextColor="Red" Clicked="OnDeleteClicked"/>
    </StackLayout>
</ContentPage>