TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ashok N
NA
10
12.7k
Reg: Silverlight Applying themes dynamically at runtime through code
Apr 30 2010 12:41 AM
Hi all,
I am working on silverlight 4.0. I am facing a problem with applying dynamic themes to my application. Please go through below and send me your solutions -
Problem:
------------------
In my application I have three ResourceDictionary files -
Default.xaml
Theme1.xaml
Theme2.xaml
In all above files I 2 style keys mentioned below and three buttons.
x:Key="ButtonStyle"
x:Key="LayoutRootGridStyle"
I have given x:Key="ButtonStyle" to only one button. My requirement is if click on three buttons all the buttons and text boxes styles are changing. but the both x:key styles are not changing. Please tell me the problem and solution asap.
In my main application I am using may borders and grids if I give the styles with out key the style applying to all. I don't want that. I just want to apply styles to given key only.
Thanks in advance.
Attachment:
SL_DynamicThemesChange.zip
Reply
Answers (
2
)
Thread searching a DataGridView Control
Reg: Silverlight 4.0 Applying themes dynamically at runtime through code