mvvmlight icon indicating copy to clipboard operation
mvvmlight copied to clipboard

Modifiing property from INotifyPropertyChanged Class after GoToAsync -> Pop -> GoToAsync result in ObjectDisposedException

Open jm-parent opened this issue 4 years ago • 1 comments

Hi all !

Like the title said , i need some help about binding Observable model :( This is what i have :

A model with INotifyPropertyChanged ( i tried before with ObservableObject from MvvmHelper James Montemagno ) image

3 buttons binded on a command that modify the properties image

The commands image

What i did : GotoAsync("ScanWorking") , select PowerKm , validate , await Shell.Current.Navigation.PopAsync(); GotoAsync("ScanWorking") , Selected button is still selected , and when i'm try to select another PowerKw , i get this error.

image

Poping page dispose my data model object , and i dont know how i can handle this ?

Any one have full example with Shell & MvvmLight ?

jm-parent avatar Mar 19 '20 07:03 jm-parent

Update:

Same thing with any property :'(

image

First time on screen , modify value , validate => ok pop Go to the screen a second time. Data seems to still be there. Click to chose another value Crash 👎

jm-parent avatar Mar 19 '20 07:03 jm-parent