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

Themes - Examples & Documentation

18 Answers 665 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 06 Nov 2008, 05:10 PM
I've just seen the example of themes at http://demos.telerik.com/silverlight/themes/ but haven't found any documentation or examples on the site, Can you point me in the right direction. I'm also assuming that the Themes apply to standard SilverLight controls such as Button and GridSplitter as well as the Telerik control.

Thanks in advance

18 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 06 Nov 2008, 05:31 PM
Hi John,

We will be blogging about this example very shortly, most probably tomorrow. Unfortunately the documentation for this feature was not updated in time and is not currently online. Please, stay tuned for more info and excuse us for the inconvenience.

Sincerely yours,
Valeri Hristov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jaime
Top achievements
Rank 2
answered on 13 Nov 2008, 06:49 PM
Hi, where is this example, I can't find it anywere.

Thanx in advance.
0
Valentin.Stoychev
Telerik team
answered on 17 Nov 2008, 06:48 AM
Hello Jaime,

The themes example is here:
http://demos.telerik.com/silverlight/themes/ 

Please let us know if you have any questions about the Themes support.

Sincerely yours,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Richard
Top achievements
Rank 1
answered on 17 Nov 2008, 01:30 PM
Hello, I am subscribed to this post and see the themes but I don't see any example code on how to implement the themes.  What code do I need and do I have to add references or any other code to make the themes work?
0
Valentin.Stoychev
Telerik team
answered on 17 Nov 2008, 02:01 PM
Hello Richard,

you need to make two things to have your application to use a theme different than the default one.
1. Reference the dll that is including the other theme - For example : Telerik.Windows.Themes.Default_Red.dll
2. Set this code in the App_Startup event handler:
        private void Application_Startup(object sender, StartupEventArgs e)  
        {  
 
            // Load the selected theme  
            Telerik.Windows.Controls.Theme.ApplicationTheme = "Telerik.Windows.Themes.Default_Red";  
 
            this.RootVisual = new Page();  
        } 

Sorry for the missing blogs/kb articles about the new theming features. We will produce them later this week - after we release the RadGridView CTP.

Thanks for your patience! Let us know if you have any other questions regarding themes.

Kind regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
John
Top achievements
Rank 1
answered on 17 Nov 2008, 04:11 PM

Valentin

 

The sample code changes the Theme applied to the Telerik controls but how can you apply the theme to standard objects such as Buttons?

 

Thanks

 

John

0
Richard
Top achievements
Rank 1
answered on 17 Nov 2008, 05:16 PM
Valentin,

I am not having too much luck applying a theme.  Here is what I have done.

I referenced the dll for  Telerik.Windows.Themes.OfficeBlack in my Silverlight project and I see it there.

 

Then I added the line into the Application_Startup in the App.xaml.cs file as shown below:

 

private void Application_Startup(object sender, StartupEventArgs e)

 

{

Telerik.Windows.Controls.

Theme.ApplicationTheme = "Telerik.Windows.Themes.OfficeBlack";

 

 

this.RootVisual = new FileUpload();

 

}

But the theme does not apply.  I am working with the radUpload control.  There seems to be something missing somewhere.  Do we have to reference the theme somehow in the control itself.

Rich

0
Valentin.Stoychev
Telerik team
answered on 17 Nov 2008, 06:59 PM
Hello Richard,

"OfficeBlack" is available only for the Gauge controls right now. Try with Vista or any of the Default_* themes.

We are working on the OfficeBlack theme. It will be available after our Service Pack release for all controls.

Let us know how it goes.

Regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Richard
Top achievements
Rank 1
answered on 17 Nov 2008, 08:58 PM
Valentin,

I tried the Vista theme first and it did not appear so I still have the problem.  Is there any way to post the actual code used on the sample site - at least for the upload control?
0
Valentin.Stoychev
Telerik team
answered on 18 Nov 2008, 07:30 PM
Hi All,

I'm posting a Silverlight solution that contains two projects - one for a Custom theme and one for a Silverlight application that is using this custom theme.

If you need to apply a custom control template for any Telerik Silverlight control - just modify the resource files that are locate in Themes folder in the "MyCustomTheme" project.

Please note that we have some difficulties making the controls editable in Expression Blend. We are working on providing a solution for that. Once we have a breakthrough - will let you know.

Please let us know if you have any problems editing the themes.

All the best,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Valentin.Stoychev
Telerik team
answered on 19 Nov 2008, 09:43 AM
Hi There,

please check this blog post for more info:
http://blogs.telerik.com/ValentinStoychev/Posts/08-11-19/Tweaking_the_Theme_colors_for_Telerik_Silverlight_Controls.aspx?ReturnURL=%2fBlogs.aspx

Your feedback is much appreciated!

Sincerely yours,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Antonis
Top achievements
Rank 2
answered on 19 Nov 2008, 10:30 AM
Do Themes work for the CTP version of GridView?!

Thanks
0
Valentin.Stoychev
Telerik team
answered on 19 Nov 2008, 11:15 PM
Hello Antonis,

Nope - the GridView is still not using the shared resources, but with the Q1 release it will.

Regards,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jamest
Top achievements
Rank 2
answered on 13 Mar 2009, 06:56 PM
Is there any way we can get an updated Custom Theme builder including all the controls included in Q1?
0
William
Top achievements
Rank 1
answered on 15 Mar 2009, 06:16 PM
This technique no longer seems to be working in the Q1 2009 release?

When I call Telerik.Windows.Controls.Theme.ApplicationTheme = "Telerik.Windows.Themes.Vista";

I get an error stating that
Telerik.Windows.Controls.Theme does not contain a definition for 'ApplicationTheme'

Has that changed?  I'm referencing version 2009.1.312.1020 of Telerik.Windows.Controls.dll


0
Hristo
Telerik team
answered on 16 Mar 2009, 09:09 AM
Hello William,

You can read how to change application theme from here:
http://www.telerik.com/community/forums/silverlight/general-discussions/apply-themes-on-radcontrols-q1-2009.aspx#766512

Let us know if you need more information.

Greetings,
Hristo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Anthony Doerr
Top achievements
Rank 1
answered on 10 Jul 2009, 01:50 PM
Hello,
I'm running into the same problem William had.  However, I'm not able to get to the link in the previous post.  Is there a new link?
Thanks!
0
Boyan
Telerik team
answered on 15 Jul 2009, 03:30 PM
Hello Anthony Doerr,

Yes, this link is outdated. We changed the Theming mechanism. Take a look at this link, it will solve your problems.

Let me know if you need more information.

Sincerely yours,
Boyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Jaime
Top achievements
Rank 2
Valentin.Stoychev
Telerik team
Richard
Top achievements
Rank 1
John
Top achievements
Rank 1
Antonis
Top achievements
Rank 2
Jamest
Top achievements
Rank 2
William
Top achievements
Rank 1
Hristo
Telerik team
Anthony Doerr
Top achievements
Rank 1
Boyan
Telerik team
Share this question
or