Binding controls to other controls and to classes
This commit is contained in:
@ -30,15 +30,32 @@
|
||||
<Entry Grid.Row="3"
|
||||
Grid.Column="1" />
|
||||
<Label Grid.Row="4"
|
||||
Text="Cost" />
|
||||
<Entry Grid.Row="4"
|
||||
Grid.Column="1" />
|
||||
Text="Cost" />
|
||||
<HorizontalStackLayout Grid.Row="4"
|
||||
Grid.Column="1" >
|
||||
<Entry Text="{Binding Value}"
|
||||
BindingContext="{x:Reference CostStepper}"/>
|
||||
<Stepper x:Name="CostStepper"
|
||||
Minimum="1"
|
||||
Value="10"
|
||||
Maximum="{Binding Value}"
|
||||
BindingContext="{x:Reference PriceStepper}"
|
||||
Increment="1"/>
|
||||
</HorizontalStackLayout>
|
||||
|
||||
<Label Grid.Row="5"
|
||||
<Label Grid.Row="5"
|
||||
Text="Price" />
|
||||
<Entry Grid.Row="5"
|
||||
Grid.Column="1" />
|
||||
|
||||
<HorizontalStackLayout Grid.Row="5"
|
||||
Grid.Column="1" >
|
||||
<Entry Text="{Binding Value}"
|
||||
BindingContext="{x:Reference PriceStepper}"/>
|
||||
<Stepper x:Name="PriceStepper"
|
||||
Value="20"
|
||||
Minimum="{Binding Value}"
|
||||
Maximum="9999"
|
||||
BindingContext="{x:Reference CostStepper}"
|
||||
Increment="1"/>
|
||||
</HorizontalStackLayout>
|
||||
<Label Grid.Row="6"
|
||||
Text="Size" />
|
||||
<Entry Grid.Row="6"
|
||||
|
||||
Reference in New Issue
Block a user