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