How to make Modal Windows borderless?

Feb 2, 2013 at 6:31 PM
Edited Feb 2, 2013 at 7:23 PM
Hello,
This looks very useful -- having a model window that is not constrained to the parent's border.
I get an 'OutOfRange' exception when trying to set the window style.
                win = new Window();
                win.Content = c;
                win.WindowStyle = WindowStyle.BorderlessRoundCornersWindow;
Three questions:
1) WindowStyle.None works well enough. [Solved: How to change the style of the Window to borderless?]
2) How would the content tell the modal parent to close itself?
SOLVED: win = Window.GetWindow(); win.Close();
3) How does the modal child window communicate with its parent (reporting a user's selection, for example)?

Thanks for any help with this....
Feb 6, 2013 at 9:12 PM
3) How does the modal child window communicate with its parent (reporting a user's selection, for example)?

The child window's DataContex can be used to communicate values with the parent.