Skip to main content

Microsoft Silverlight

Skin Changing ProblemRSS Feed

(0)

varunchopra
varunchopra

Member

Member

38 points

56 Posts

Skin Changing Problem

Hi,

I am making a media player in silverlight 2 b2 . I want to give an option of changing skins. How can i do that???

Should i keep different xaml of each skin and on skin change click i reload the whole control by changing loading class in App.xaml.cs????   or

I keep different styles for every element in Player so that i can apply that style in the code.. But i found that i can change the style of any element only once in the code otherwise it throws an exception..Am i wrong?? if am right is there any work around??

or there can be any third way ... ????

Plz help

-varun

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Re: Skin Changing Problem

Hi,

You can not change astyle but you You can apply a content Template  in code behind.

Mark as answer if this post answered your question.

Harsh Bardhan

varunchopra
varunchopra

Member

Member

38 points

56 Posts

Re: Skin Changing Problem

Hi Harsh,

can you  plz explain how to do that. or give me link wherein i cant get the hang of it..
thx

-varun

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Re: Skin Changing Problem

Hi,

check this link.

http://silverlight.net/forums/t/27083.aspx

It discusses about that.If you are still facing problem let me know ...

Mark as answer if this post answered your question.

Harsh Bardhan
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities