Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extender provider for WPF

Tags:

c#

.net

wpf

Is there an equivalent to the System.ComponentModel.IExtenderProvider geered toward WPF ?

Do I have to go toward Dependency Properties and Attached Properties to build an equivalent, or is there already something baked in the oven waiting for me ?

Thanks,

Patrick

like image 251
PBelanger Avatar asked Feb 22 '26 08:02

PBelanger


1 Answers

The Attached Property is the way to go http://msdn.microsoft.com/en-us/library/ms749011.aspx

You can also use AttachedPropertyBrowsableForChildrenAttribute to tell a control to extend the newly created property to all its children (Has Grid's row property).

like image 149
Jean-Sébastien Desfossés Avatar answered Feb 24 '26 00:02

Jean-Sébastien Desfossés