This is a migrated thread and some comments may be shown as answers.
Creating a custom theme for media player
8 Answers 66 Views
This is a migrated thread and some comments may be shown as answers.
anand
Top achievements
Rank 1
anand asked on 11 Sep 2009, 09:40 PM
Hi,
  I have been given a set of icons to use for the different controls.  How can I create a custom theme using these icons.  Additionally is there a walkthrough/video webcast of how to create custom themes?  Although topics point to using expression blend, I am not familiar as to where to edit the theme in blend.
Thanks.

8 Answers, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 13 Sep 2009, 10:58 AM
Hi Anand,

You can extend and modify the control template of our controls by using Expression Blend. We have spend the time to explain the topic in several articles that are available in our online documentation. Here is a link that describes how to edit the control template of RadSlider which is essentially the same for RadMediaPlayer. You can also take a look at the whole Styling and Appearance section which can give you a start with our built-in themes if you are willing to use them, instead of creating your own.

Thank you for contacting us.

Greetings,
Hristo Borisov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Daniel Cohen-Dumani
Top achievements
Rank 2
answered on 14 Sep 2009, 03:19 PM


0
anand
Top achievements
Rank 1
answered on 14 Sep 2009, 03:21 PM
Hi,
  Thanks for the response, however, the articles do not mention if I can make use of my own set of images.  They simply point to styling elements, which is akin to css.  How can I just say use mystopbutton.png file for the stop button in the media player?
0
Hristo Borisov
Telerik team
answered on 15 Sep 2009, 09:30 AM
Hello anand,

There is a little ground of comparison between css and a control template. If you open the control template of the control, you will find elements such as buttons, media elements, menus and so on. All of these items are named accordingly. Thus you can find the name of the button you want, and set the image as the content of the button. If you need any further assistance, please get back to us.

Sincerely yours,
Hristo Borisov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
anand
Top achievements
Rank 1
answered on 16 Sep 2009, 02:36 PM
I should probably mention that i am using Q3 2008 since I have to build for silverlight 2.0 and cannot use 3.0 .  The assembly version I am using for Telerik.Windows.Controls is 2008.3.1217.1020
Is it possible that the tutorials are not meant for this version?


following this post at http://www.telerik.com/community/forums/silverlight/general-discussions/how-do-i-apply-a-theme.aspx did not help either.  I referenced Telerik.Windows.Themes.Vista and applied the following in the Application_Startup
Telerik.Windows.Controls.Theme.ApplicationTheme = "Telerik.Windows.Themes.Vista"
            RootVisual = new Page(); 

I just receive an error {System.Windows.Markup.XamlParseException: AG_E_UNKNOWN_ERROR [Line: 15 Position: 46]
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Gov.MyLoc.SkinnedVideoPlayer.Page.InitializeComponent()
   at Gov.MyLoc.SkinnedVideoPlayer.Page..ctor()}

Is this not the right way of applying the theme?



0
Hristo Borisov
Telerik team
answered on 18 Sep 2009, 09:30 AM
Hello anand,

We have significant changes and improvements concerning the themes of the controls, since the release you are using. Why do you want to use Silverlight 2 application, since it's not supported by Microsoft anymore, and that there is push update that will force most of the users to update to Silverlight 3? Silverlight 2 is fully compatible to Silverlight 3 and you shouldn't experience any problems converting it. Moreover, we also do encourage our customers to use the latest releases of Silverlight and our controls. If in your case it's not possible, we will try to resolve your issue for the version you use.

Yes, you are right the tutorials are written for our latest version. Thank you for contacting us and I hope you will be able to use our latest version.

Sincerely yours,
Hristo Borisov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
anand
Top achievements
Rank 1
answered on 18 Sep 2009, 01:43 PM
Unfortunately in my case the client demands that I not use silverlight 3, and I have no room for argument here with them.  Can you please help me with the version I am using which is silverlight 2 telerik - 2008.3.1217.1020

0
Kiril Stanoev
Telerik team
answered on 22 Sep 2009, 11:16 AM
Hello anand,

RadControls for Silverlight 2008.3.1217.1020 did not provide a vista theme for RadMediaPlayer. That is the reason why you get an error when trying to set an application theme. However, I took the Vista theme from the 2009.1.526.1020 binaries and I am attaching it as a file. I'd recommend you copy the theme from the attached file and paste it in you solution. The you can use Expression Blend to modify the theme as you like.
Give this approach a try and let me know how it works for you.

Sincerely yours,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Asked by
anand
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Daniel Cohen-Dumani
Top achievements
Rank 2
anand
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or