Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

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

Open
jm-parent opened this issue Mar 19, 2020 · 1 comment

Comments

@jm-parent
Copy link

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
Copy link
Author

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 👎

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant