Quantcast
Channel: DotNetShoutout - Stories tagged with tip
Viewing all articles
Browse latest Browse all 7

Binding on a Property which is not a DependencyProperty

$
0
0
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…
Shout it
Only $4.95/month – Windows 2008/ASP.NET 4 Hosting!

Viewing all articles
Browse latest Browse all 7

Trending Articles