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

Editing button style in the mediaplayer

5 Answers 99 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
G S S
Top achievements
Rank 1
G S S asked on 23 Aug 2009, 04:42 PM
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

5 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 24 Aug 2009, 11:14 AM
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.

0
G S S
Top achievements
Rank 1
answered on 30 Aug 2009, 03:49 PM
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
0
Miroslav
Telerik team
answered on 31 Aug 2009, 01:05 PM
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.
0
G S S
Top achievements
Rank 1
answered on 31 Aug 2009, 09:19 PM
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
0
Miroslav
Telerik team
answered on 02 Sep 2009, 01:05 PM
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.
Tags
MediaPlayer
Asked by
G S S
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
G S S
Top achievements
Rank 1
Miroslav
Telerik team
Share this question
or