<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="MauiAppStock.Views.EditPiecePage"
             xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
    <StackLayout Padding="10">
        <Label Text="Modifier la Pièce" FontSize="24" HorizontalOptions="Center"/>

        <Entry x:Name="NomEntry" Placeholder="Nom"/>
        <Editor x:Name="DescriptionEditor" Placeholder="Description" HeightRequest="100"/>
        <Entry x:Name="PrixEntry" Placeholder="Prix" Keyboard="Numeric"/>
        <Entry x:Name="StockEntry" Placeholder="Stock" Keyboard="Numeric"/>

        <Label Text="Sélectionnez un fournisseur:"/>
        <Picker x:Name="FournisseurPicker" Title="Fournisseurs"/>

        <Button Text="Enregistrer" Clicked="OnSaveClicked"/>
        <Button Text="Supprimer" Clicked="OnDeleteClicked" TextColor="Red"/>
    </StackLayout>
</ContentPage>