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

RadWindow.Prompt

4 Answers 185 Views
Window
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 2
Matthew asked on 29 Jan 2009, 10:48 PM
I'm using a RadWindow.Prompt within a Silverlight application as we are testing out your product.  If I have a theme set for the application, say Office_Black, the Application will crash when the Prompt is issued.  I've realized that the error is due to the RadWindow.Prompt's theme being set to the default.

Using the DialogParameters I am able to build the RadWindow.Prompt with preloaded values included a Theme, but I do not know how to set the Theme = to a theme object.  Currently the themes are referenced as Dll's and when I retrieve Telerik.Windows.Controls.Theme.ApplicationTheme, this is a string and not a Theme object.

Can someone provide a little insight on how to set the Theme = to a theme object given the above scenario?  Below is my code in C#.  Thanks in advance.

RadWindow.Prompt(new DialogParameters
                                 {
                                     Header = "Enter Name",
                                     Closed = RadWindowClosed,
                                     DefaultPromptResultValue = "John Doe",
                                     Theme = ????
                                 });

4 Answers, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 30 Jan 2009, 10:35 AM
Hello Matthew,

Would you send us the exact exception you are getting when using the prompt method? The theme parameter will be marked obsolete in our next release since we introduced a better logic for changing the look of our controls. Please excuse us for this inconvenience and as soon as we isolate the exception and fix it we can send you a build that resolves the issue in case it is urgent to have it. Feel free to contact us for any further assistance.

Best wishes,
Hristo Borisov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Matthew
Top achievements
Rank 2
answered on 30 Jan 2009, 01:54 PM
There is no exception thrown, the window just goes blank.  I think the problem is with a conflicting style within the default Prompt and the Theme I'm using ("Vista").  For now if you could tell me how to cast the Telerik.Windows.Controls.Theme.ApplicationTheme to a Theme object that would likely resolve my issue.

For your purposes you could simply create a silverlight app using the Vista them and then have a call to a prompt issued by the user and you'll get the same result.
0
Matthew
Top achievements
Rank 2
answered on 30 Jan 2009, 03:09 PM
Even on your http://demos.telerik.com/silverlight/themes/ when you click Prompt for themes Black, Vista, and Office Black the application goes blank.
0
Valentin.Stoychev
Telerik team
answered on 30 Jan 2009, 05:24 PM
Hello Matthew,

We were able to reproduce the problem now. thanks for pointing it out. Your telerik points has been updated.

The fix will be provided with Q1 release.

Regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Matthew
Top achievements
Rank 2
Answers by
Hristo Borisov
Telerik team
Matthew
Top achievements
Rank 2
Valentin.Stoychev
Telerik team
Share this question
or