Best way to show dialog windows

Oct 30, 2013 at 8:24 AM
Edited Oct 30, 2013 at 9:26 AM
I need to display dialog windows to my users, so I need a lightweight Modern windows - no menus, app titles, navigation etc.

What is the best way to approach this? I'd REALLY like to have "dialogs" as overlays, in the similar kind of way to what MetroTwit does. Is this supported or easily achievable with MUI??

Edit: I should add - I can stuff my own ViewModel into the BackgroundContent property on the ModernDialog, and it correctly resolves the view, but the View is aligned with the top of the Dialog, so is under the title.

Link to screenshot

Oct 31, 2013 at 12:40 PM
I assume you want a blank window like dialog with only the title bar. If yes, have a look at this code:-
        /// <summary>
        /// Removes all button from the dialog
        /// </summary>
        public void BlankDialog()
            this.Buttons = new Button[] {};
Add this function to the ModernDialog template in the source code.

Create a normal window, inherit ModernDialog and call the above function in the constructor. You get a blank window which can be then edited like any other window.