ShowDialog in WPF Browser app doesn't work


Hi Sacha,
I run into a slight problem..! I want to show a popup window similar to AddImageRatingPopup, however, WPFUIVisualizerService.ShowDialog returns an error message
"Cannot perform this operation when hosted in a Browser"

file attachments

Closed Nov 27, 2011 at 6:11 PM by sachabarber
XBAP is not really supposed to showDialog


sevententh wrote Sep 23, 2010 at 11:02 AM

I thought maybe this was a change in 2010. However, doing the following does work

AddImageRatingPopup rate = new AddImageRatingPopup();
bool? result = rate.ShowDialog();

wrote Sep 23, 2010 at 11:22 AM

sevententh wrote Sep 23, 2010 at 11:22 AM

I've attached a CinchV2 WPF Browser app :-)

sachabarber wrote Sep 23, 2010 at 3:22 PM

Oooh, I had not really invisaged people using Cinch WPF in the web actually, so would have no idea what results that would yeilf. I do not really have any plans to support XBap style apps either...sorry

sevententh wrote Sep 23, 2010 at 4:42 PM

Really!! That does surprise me... I didn't think that an WPF app was really any different to a WPF Browser App. Which makes me ask the question: Why am I developing a Browser app in the first place, when its for internal office use!! D'oh... time to change it!!

Anyway, found a poor way to do this!

AddImageRatingPopup rate = new AddImageRatingPopup();
rate.DataContext = model;
bool? result = rate.ShowDialog();

wrote Nov 27, 2011 at 6:11 PM

wrote Feb 22, 2013 at 12:07 AM

wrote May 16, 2013 at 11:46 AM