Feature request: Allow HTML formatting in MessageDialog RRS feed

  • General discussion

  • It would be nice if the MessageDialog would support HTML tags in title and message text. Of course only safe HTML should be allowed but it would help to display certain messages in a better formatted way.
    Friday, March 1, 2013 8:57 AM

All replies

  • Hi phil_ke,

    Since the built-in MessageDialog has quite limited support on the title and message body, you will need to create your own custom message dialog by using custom <div> flyout element to simulate the behavior. Actually, this is also what we usually do in standard html based web application development (as the standard javascript "alert" message dialog is quite limited which only supports plain text, too).

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, March 4, 2013 2:48 AM
  • I guess internally the MessageDialog just uses an embedded IE control so it should be no problem at all. Cause the MessageDialog is really different than just a custom div. It is really global and does not allow the user to click anywhere in the app untile the message is dismissed. Even the settings pane will not open, so the state of the app cannot be changed by the user.

    edit: ok, just checked using Spy++ its a DirectUI window and has no clue about HTML. Pity

    • Edited by phil_ke Wednesday, March 6, 2013 12:57 PM
    Wednesday, March 6, 2013 12:53 PM