c# - In WPF, How to apply style to UserControl in design view? -


i define style , control template in app.xml under tab. so, while designing ui, can see ui style applied in design view in visual studio 2008 .net3.5.

however, in case, make usercontrol project , in case, there's no app.xml ui appeared default appearance in design view. it's hard know actual looking in runtime.

is there way apply style usercontrol, too? if there's way share same style , template between application project , usercontrol project, perfect!

please let me know if there's solution.

you can keep styles in separate resourcedictionary in control project. need merge dictionaries in resources block @ top of every user control. problem approach of course lose benefit app-level styles give (like styling differently different applications) because styles determined underlying control.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -