locked
Change Dialog Style RRS feed

  • Question

  • I’m using the Windows.UI.Popups.MessageDialog to show a message at the start of my application.

    Is there any way of changing the appearance of the default metro MessageDialog?

    If the message is too long, can I add text scrolling to the default metro MessageDialog?


    var dialog = new Windows.UI.Popups.MessageDialog(WinJS.Resources.getString('start_message').value, WinJS.Resources.getString('start_message-title').value);

    dialog.commands.append(new Windows.UI.Popups.UICommand(WinJS.Resources.getString('start').value, commandInvokedHandler));

    return dialog.showAsync();

    Thanks!

    Ale.

    Wednesday, July 25, 2012 3:39 PM

Answers

  • I don't believe you can, it's a system wide UX element and they don't like apps to futz with those. It doesn't even appear to be HTML.

    The easier alternative might be to design your own HTML control that does the same thing.

    Wednesday, July 25, 2012 5:16 PM

All replies

  • I don't believe you can, it's a system wide UX element and they don't like apps to futz with those. It doesn't even appear to be HTML.

    The easier alternative might be to design your own HTML control that does the same thing.

    Wednesday, July 25, 2012 5:16 PM
  • Yeah, I thought that... 
    I started doing some test with Flyouts to show the message, the problem I'm having now is that I can't avoid the light-dismiss funtionality when clicking outside.
    I need something that stops the application until clicking on the start button of the dialog, but also need to configure it style... 
    Is there something for my need?

    Thanks 4 your answers!
    Wednesday, July 25, 2012 6:11 PM