WP7 return value from Dialog/Popup

Topics: Getting Started
Aug 3, 2011 at 10:39 AM


I am trying to get proper idea - how the value can be return from Popup window, a way, to get then this value in parent View???


WindowsManager`s ShowPopup() does not have any result value.

Taken from discussion below


does not exists in 1.1 version.

What is the correct way to get some value from Popup?

Thanks for help!
Aug 3, 2011 at 12:11 PM

Just add a property to your ViewModel.

Aug 3, 2011 at 1:42 PM

Parent ViewMode available for PopUp`s?

Aug 3, 2011 at 2:07 PM

Ok, guess i get what u mean.

Actually this functionality was needed to handle PhotoChooser task result and show it as modal window on top of parent.

Right now i have Parent ViewModel that creates an instance of dialog ViewModel, subscribe it to catch PhotoResult and launches task.

Basically, i see photo choser app, but when i select some image, it closes the choser app and also my dialog (after handeling result)..

How can i prevent my dilog from closing?