Hello,
I'm using the XamWebDialogWindow as a modal popup.
I've got a few teething issues with it.
1) The scrollbars don't appear if the content is "dynamically" resized.
My dialog contains a user control that contains a XamWebGrid and I bind data to it. When the data is bound, the grid becomes bigger and doesn't fit anymore. The dialog doesn't show the scrollbars.
If I "hardcode" the content, the scrollbars appear as expected
2) Dialog not resized to fit content.
I expect the dialog to fit itself to its content. Once again, that happens with "hardcoded" data in the XamWebGrid but not with bound data.
3) (Don't know if it's related) The XamWebGrid in the dialog fits all the width available and makes the dialog take all the available width. I'd like it to fit to data and it doesn't seem to work in that instance (code copy-pasted from other control and it shows the expected behaviour).
Cheers.
Hi,
Thanks for the reply but that's definitely NOT the issue I was describing in the posts and the files I sent.
What I wants is set up the DialogWindow as a region and dynamically set data to it. So in your example, you'll need to set the Shell as a Grid with a XamWebDialogWindow inside as a region and then stick ModuleB's view inside it.
I couldn't get that part to work because:
1) the XamWebDialog wouldn't resize itself to fit the content
2) hooking up the content's SizeChanged event and changing the size of the XamWebDialogWindow makes it crash.
As I stated before, the issues that I described have NOTHING to do with my use of PRISM but everything to do with dynamically sizing the XamWebDialogWindow.
Did you have a look at the sample that I sent? Does it crash for you as well?
I attached a sample with DialogWondow and Prism that works properly.
I modified one well known sample with Prism
http://development-guides.silverbaylabs.org/Video/Silverlight-Prism#videolocation_6
I have added also Module ModuleB with XamWebDialogWIndow and have modified SamplePrism silverlight application project. Modified files are attached to my post. Please download the original sample, modify it and start it .
Best Wishes!
Mihail
Tomorrow has gone. Any news?
Hi R4cOOn,
I hope that for tomorrow you will have an answer.
Kind Regards,
I'd like to know if you can provide some informations.
Is it a bug? Am I doing something wrong?
Can I achieve the behaviour that I'm after?