Change player appearance

Sep 2, 2010 at 10:45 AM

Hi everyone,

Is it possible to change the player appearance without recompiling?

I mean, if I want to change button color, how can I do this?


Sep 2, 2010 at 1:07 PM


Expression Blend is the best to do this with...  You have to edit the smfplayer resources in xaml and do what you will with it.  Blend will do all of this for you in respect you can just right click on what you want to edit (the player) and select edit template... It will do the rest for you...  new resource file, empty template or copy of this one... That is the set up part and then you edit the xaml to your hearts content.  In this case find the xaml in the resources that defines the button in question and edit away....

hope this helps...




Sep 2, 2010 at 1:12 PM

Sorry... I re-read your post...  I am not aware of a way to change this without recompiling...  I apologize... my mistake...

Sep 2, 2010 at 1:17 PM

Thank you anyway. But, I want actually do it without recompiling.

Sep 2, 2010 at 1:19 PM

You can do it without recompiling by dynamically switching resource dictionaries that contain a resource the button points to. The one draw back on this is it might cause ApplyTemplate to fire again which could reset the player.