c# - Binding Resource to DependencyProperty -


i building customcontrol must unfortunately contain poorly built sub-control have neither code, nor ability re-template (internal yada, yada). have access change resources, leaves me following question:

if want expose dependencyproperty on new customcontrol changes value of resource (brush), better make propertychangedcallback sets resource explicitly, or create binding dp , set resource binding.

i'm sure doesn't make huge difference in performance, 'right' way go?

thank kindly.

@ach:-

right requirement change brush , may in future may need othere thing on that, better make propertychangedcallback sets resource , other stuff.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -