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
Post a Comment