AppSAV/MauiAppStock/Views/PiecesPage.xaml
Yann ASTIER 8d8578a059 Ajout :
- Suivi des mouvements stocks (table, crud, vue)
- Placeholder pour picker fournisseur (vue)
- Historique des mouvements stock (vue)
2025-04-08 11:21:14 +02:00

26 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<ContentPage x:Class="MauiAppStock.Views.PiecesPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:vm="clr-namespace:MauiAppStock.ViewModels">
<ContentPage.BindingContext>
<vm:PiecesViewModel />
</ContentPage.BindingContext>
<ContentPage.ToolbarItems>
<ToolbarItem Text="+" Clicked="OnAddPieceClicked" />
</ContentPage.ToolbarItems>
<StackLayout Padding="10">
<Label Text="Liste des Pièces" FontSize="24" HorizontalOptions="Center" />
<ListView x:Name="PiecesListView" ItemsSource="{Binding Pieces}"
IsPullToRefreshEnabled="True"
RefreshCommand="{Binding LoadPiecesCommand}"
ItemTapped="OnPieceTapped">
<ListView.ItemTemplate>
<DataTemplate>
<TextCell Text="{Binding Nom}" Detail="{Binding DetailView}" />
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ContentPage>