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

RadWindow.Prompt not displaying when providing WindowClosedEvent

2 Answers 84 Views
Window
This is a migrated thread and some comments may be shown as answers.
Guillaume
Top achievements
Rank 1
Guillaume asked on 06 Dec 2011, 06:25 PM
Hello,
The following code displays a prompt as expected only when I don't provide the event handler :
var DialogParam = new DialogParameters
            {
                Content = new TextBlock()
                {
                    Text = "..."
                },
                Header = new TextBlock()
                {
                    Text="",
                }
            };
            RadWindow.Prompt(DialogParam);
            RadWindow.Prompt(DialogParam, ActionOnClose);

In the second case It displays "Telerik.Windows.Controls.DialogParameters " instead of "..." :-/

2 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 07 Dec 2011, 09:42 AM
Hello Guillaume,

The second call uses the wrong overload - the first parameter is the content of the Prompt. That is why the content is Telerik.Windows.Controls.DialogParameters. In order to pass the Closed handler when using DialogParameters you should use the Closed property of the DialogParameters object.

Hope this helps.

Regards,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Guillaume
Top achievements
Rank 1
answered on 07 Dec 2011, 10:10 AM
That's it, thanks !
Tags
Window
Asked by
Guillaume
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Guillaume
Top achievements
Rank 1
Share this question
or