Editing button style in the mediaplayer

6 posts, 0 answers
  1. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 23 Aug 2009 Link to this post

    Hi,

    I am a little new to Silverlight/Silverlight controls (use ASP.NET controls mostly).

    Anyway, I would like to edit the styling of the mediaPlayer so it is mostly black. How can I access the styles of the buttons to do this?

    I have heard a bit about "Resources". Is this of any relevance? If so, does anyone know a good link which explains this?

    This is my first time using this specific control and it is pretty good.


    Thanks
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 24 Aug 2009 Link to this post

    Hi Gurdeep,

    The easiest and fastest way to change the look and feel of a control is to edit its ControlTemplate using Microsoft Expression Blend.
    1. Create a Silverlight application and add a RadMediaPlayer on the MainPage.
    2. Right-click on MainPage.xaml and choose "Open in Expression Blend..." (this option is available only after installing Microsoft Expression Blend).



    3. Once Microsoft Expression Blend opens, you should see something like the screenshot bellow.



    4. Right-click on RadMediaPlayer in the "Objects and Timeline" pane and select "Edit Template > Edit a Copy"



    5. This will dump all the resources necessary for editing the look and feel of RadMediaPlayer. From then on it is up to you to decide how RadMediaPlayer will look and behave.



    I am attaching my sample project. Give it a try and let me know if you encounter any problems. Also, you can have a look at this list of Silverlight and Blend tutorials for further reference.


    Sincerely yours,
    Kiril Stanoev
    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.

  3. DevCraft banner
  4. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 30 Aug 2009 Link to this post

    Hi,

    This worked, but I tried making another silverlight project with media player and when following the above process and right clicking > edit template, all the options in this selection are greyed out.

    Furthermore, when I run my project (it has no errors), the loader hangs (where it goes 10%, 15%, etc etc...) - it hits 100% but then nothing happens.

    For both of these problems, I am not sure if the issue is with Silverlight or Telerik.

    Thanks
  5. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 31 Aug 2009 Link to this post

    Hi,

    What version of Expression Blend are you using, it seems that Kiril is using Blend 3.0.

    Do you get the error if you copy the xaml from the attached project?

    Also, could you send us the project that does not run for you? (You can open a support ticket to attach something)

    All the best,
    Miroslav
    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.
  6. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 31 Aug 2009 Link to this post

    I haven't yet tried the project attached, but:

    I am on expression blend 3 (Trial).

    I made a standard silverlight app + website with a silverlight standard control (progress bar). I was able to edit a copy to then edit the styling (What I can't do with Telerik).

    I was also able to run the project and get passed the loading screen.

    I will attach the problematic project soon. I may also reinstall expression blend.

    Thanks
  7. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 02 Sep 2009 Link to this post

    Hi G S S,

    Yes, please send us the failing project so that we can have a look at it. I also tried editing the template of the RadMediaPlayer and Blend did not come up with any errors.

    I was using the latest Blend Trial version, downloaded from here:

    http://www.microsoft.com/downloads/details.aspx?FamilyID=e82db5e2-7106-419e-80b0-65cce89f06bb&displaylang=en

    and the 2009.2.08.28 internal build of the controls.

    Greetings,
    Miroslav
    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