Binding on a Property which is not a DependencyProperty

added by jmix90
4/5/2010 5:51:03 AM


A lot of controls expose properties which are not DependencyProperties and then you can’t put a binding on it. On some other cases, you only have a getter as accessor and you can’t put a binding on it too. This is for example the case for the ribbon’s group of the office ribbon or the converter’s parameter. If you ever tried to do so, you surely had an exception throwned : " A 'Binding' cannot be set on the 'SetCEDEJDED' property of type 'Tralala'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject." In this post we will discover a work-around…