This is a migrated thread and some comments may be shown as answers.

MessageBox with ListBox?

3 Answers 197 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Martin
Top achievements
Rank 1
Martin asked on 16 Nov 2012, 09:44 AM

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)

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 16 Nov 2012, 11:32 AM
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.
0
Martin
Top achievements
Rank 1
answered on 16 Nov 2012, 12:17 PM

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.

0
Victor
Telerik team
answered on 20 Nov 2012, 08:26 AM
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.
Tags
MessageBox
Asked by
Martin
Top achievements
Rank 1
Answers by
Victor
Telerik team
Martin
Top achievements
Rank 1
Share this question
or