ShowPopup - getting data?

Topics: UI Architecture
Apr 22, 2012 at 8:55 AM

Hi, I've been experimenting with using ShowPopup to allow quick editing of some data in the 'clicked' viewmodel.

I got the popup to work, but I'm not sure how to bind the textboxes to the parent viewmodel, which has the actual data, and push any changes back to the parent.

The other issue I have is that the popup (which is opened with a MouseLeftButton Action) can be clicked many times, opening many duplicate popups.

I think I need a CanOpenPopup guard, but I can't figure out how to tell if the popup is already open.