MessageBox with ListBox?

4 posts, 0 answers
  1. Martin
    Martin avatar
    26 posts
    Member since:
    Jul 2012

    Posted 16 Nov 2012 Link to this post

    Is it possible to customize the RadMessageBox to contain ListBox, to get siimlar appearance and functionality like the system Reminder control?

    http://i.techrepublic.com.com/blogs/wp7remindersfigb.jpg

    And other question, why it's not possible to pass my state/object as a parameter to the MessageBox? Guide.BeginShowMessageBox got it, so why not RadMessageBox?

    Edit: fixed the problem with my state:

    closedHandler: args => ClosedHandler(args, task)

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 16 Nov 2012 Link to this post

    Hello Martin,

    Thanks for writing.
    RadMessageBox is deliberately designed to work in very limited scenarios. If you need to have a custom dialog like you described. Please consider building one on top of RadModalWindow.

    Please write again if you have other questions.

    Greetings,
    Victor
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Martin
    Martin avatar
    26 posts
    Member since:
    Jul 2012

    Posted 16 Nov 2012 Link to this post

    What about using CotnrolTemplate for changing the layout of MessageBox, that should work?

    http://www.telerik.com/help/windows-phone/messagebox-gettingstarted-examples.html

    And another question, I just found, that If I show two dialogs at the same time and click a button on it, then this click is propagated to both dialogs at the same time and both are closed simultaneously. This needs to be fixed as well. Ideal solution should be something like the system dialog, when two alarms are raised at the same time - I have to close the first and the second one... or at least I'd like to have something like this:

    await RadMessageBox.ShowAsync(...);

    behavior, so I can await for closing the first one before showing the other one.

  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 20 Nov 2012 Link to this post

    Hi Martin,

    Thanks for writing.
    Currently RadMessageBox (RadWindow actually), does not support multiple windows open at the same time. Opening multiple windows or message boxes will result in undefined behavior. We will consider implementing this in a future release.

    In theory, you could add a list box to the control template of the message box. However, you will not be able to write any C# code to use this list box since you will have to inherit from RadMessageBoxControl but you will not be able to force the static RadMessageBox class to use this new message box control.

    I strongly suggest building a minimal dialog on top of RadWindow that is appropriate for your scenario. RadMessageBox was not designed to have a list box inside.

    Finally, I agree that it would be nice if RadMessageBox supported the async feature of C#. Changing the current api however will result  in a huge breaking change. We will consider how to implement this for a future release as well.

    Thanks for the feedback. If you have more questions, feel free to write again.

    Greetings,
    Victor
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top
DevCraft banner