Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4970
How to open DialogWindow?
posted

Just look at sample for dialogwindow. The code like:

XamDialogWindow win = CreateDialogWindow();
win.ModalBackgroundEffect = null;
win.IsModal = true;
win.Content = new MyUsercontrol();
this.LayoutRoot.Children.Add(win);

So it means when open a dialog, you must find out a parent container for it. My situation is:

I have a toolbar user control with height like height = 25. Then there is a button to open a dialogwindow.

Then I use this toolbar control in any other user control, when open dialogwindow with above kind of code, it will expand toolbar height because it is inside the tool bar and messed up the UI layout.

But what I want it the dialogwindow can be opened based on brower window, not the control.

How to reslove this problem it?

 

Parents
No Data
Reply Children
No Data