Attached properties to avoid custom controls
I've heard about the possibility to use attached propertie开发者_高级运维s to avoid writing a custom control in WPF.
Could you explain me how or address me to a tutorial? Thank youI found by myself the answer to my question: attached behaviors. They are a way to extend the functionality of a control without writing a new one and are based on a specific use of attached properties.
I found two interesting articles and I attach them below for those of you who are interested in:
Elad's WPF Blog
Josh Smith's article
I definitely think that the answer you found yourself is valid but for additional info explaining the Attached property pattern (In plain English as I wasn't too thrilled with Josh Smith's Article). Took 5 min to read this and it cleared things up for me quite a bit. Gave me the quick and dirty of it.
精彩评论