Finalized Maui-series for vs development

This commit is contained in:
2025-08-21 22:08:06 +02:00
parent 543b9c2aaf
commit 8b7afd50a4
10 changed files with 95 additions and 13 deletions

View File

@ -6,6 +6,7 @@
xmlns:vm="clr-namespace:AdventureWorks.MAUI.CommandClasses"
xmlns:model="clr-namespace:AdventureWorks.EntityLayer;assembly=AdventureWorks.EntityLayer"
x:DataType="vm:ProductViewModelCommands"
x:Name="ProductListPage"
Title="ProductListView">
<Border Style="{StaticResource Screen.Border}">
<Grid>
@ -36,7 +37,9 @@
<Label Text="{Binding ListPrice, StringFormat='{0:C}'}" />
</HorizontalStackLayout>
<HorizontalStackLayout>
<Button Text="Edit" />
<Button Text="Edit"
CommandParameter="{Binding ProductID}"
Command="{Binding Source={x:Reference ProductListPage}, Path=BindingContext.EditCommand}"/>
<Button Text="Delete" />
</HorizontalStackLayout>
</VerticalStackLayout>