LanceMcCarthy / MvpApi

An application for Microsoft MVPs to easily browse and upload contributions
MIT License
36 stars 10 forks source link

Attendees field not updating value after edit #33

Closed LanceMcCarthy closed 6 years ago

LanceMcCarthy commented 6 years ago

Report of "Doesn't seem to be updating number of attendees".

LanceMcCarthy commented 6 years ago

There is a case where if you save the item before the Entry has lost focus, the underlying property is not updated.

Workaround Click or tab, out of the numeric entry before saving.

LanceMcCarthy commented 6 years ago

Also reported in the AddContributionsPage.

LanceMcCarthy commented 6 years ago

Solution: Use PropertyChanged for UpdateSourceTrigger for the TwoWay bindings.

For example:

Value="{Binding SelectedContribution.AnnualQuantity, Converter={StaticResource DoubleToIntConverter}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"