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

WPF AlertDialog

1 Answer 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mohamed
Top achievements
Rank 1
Mohamed asked on 02 Nov 2011, 07:21 PM
Hello, 

I'm developing a WPF desktop application
How could I create an AlertDialog and add a special handling to it.
the problem is the AlertDialog needs a Browser , but I'm working on WPF desktop app!!
any help !!

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 04 Nov 2011, 09:07 AM
Hi Mohamed,

Please update to our latest internal build 2011.2.1103. You can download it from your Telerik account here. With this build of the framework you can use the ActiveApplication property instead of ActiveBrowser. Here is a sample code for handling WPF dialogs:
// Handle Wpf dialog.
GenericDialog genericDialog = new GenericDialog(ActiveApplication, "<Enter Dialog Title>", true, "");
Manager.DialogMonitor.AddDialog(genericDialog);

If you want to create a simple Alert Dialog with custom text content, you can use MessageBox as explained in this article

Hope this helps!

All the best,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Mohamed
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or