wpf - Ways to apply dynamic style to same user control in different silverlight application? -


I have created a user control in the light of silver

I have given this control two different applications I will use it.

Each application has its own style rules

I want control for the user to adopt the style defined in the related application.

One way I found

1) Two different style templates are the same key in App.xaml of both apps.

2) Use binding static resources to bind the style in control.

If no one can change the style within the same application, I

This will define a style:

  style target type =" my user control / "gt;   

If it changes per position / view, then apply a resource key and set the example style to control.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -