Finalized Maui-series for vs development
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user