Creating a custom theme for media player

9 posts, 0 answers
  1. anand
    anand avatar
    22 posts
    Member since:
    Jun 2008

    Posted 11 Sep 2009 Link to this post

    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.
  2. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 13 Sep 2009 Link to this post

    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.
  3. DevCraft banner
  4. Daniel Cohen-Dumani
    Daniel Cohen-Dumani avatar
    7 posts
    Member since:
    Jun 2005

    Posted 14 Sep 2009 Link to this post



  5. anand
    anand avatar
    22 posts
    Member since:
    Jun 2008

    Posted 14 Sep 2009 Link to this post

    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?
  6. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 15 Sep 2009 Link to this post

    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.
  7. anand
    anand avatar
    22 posts
    Member since:
    Jun 2008

    Posted 16 Sep 2009 Link to this post

    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?



  8. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 18 Sep 2009 Link to this post

    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.
  9. anand
    anand avatar
    22 posts
    Member since:
    Jun 2008

    Posted 18 Sep 2009 Link to this post

    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

  10. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 22 Sep 2009 Link to this post

    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.
Back to Top
DevCraft banner