Solutions:
- What about refresh the
list
in the onAppearing
of listView Page
?
Every time you changed the value
in the item detail page
and update the latest data to the sever side. Then you go back to the listView Page
, it will trigger refresh
in onAppearing
and then you can get the updated value from API
.
- You can use messaging-center:
when I change it in the detail page and also when I refresh the list.
Send a Messaging(stepperChanged
) when the value changed:
MessagingCenter.Send<MainPage> (this, "stepperChanged");
change the value of the custom stepper
In your listView Page, Subscribe the Message named stepperChanged
:
MessagingCenter.Subscribe<MainPage> (this, "stepperChanged", (sender) => {
// do something whenever the "stepperChanged" message is sent
// refresh the list here
});