Binding Setter.Value from code

Posted by chaiguy on Stack Overflow See other posts from Stack Overflow or by chaiguy
Published on 2010-06-13T00:59:10Z Indexed on 2010/06/13 1:02 UTC
Read the original article Hit count: 469

Filed under:
|
|
|
|

In XAML I can write something like this:

<Setter Property="PropertyName" Value="{Binding ...}" />

How would I do this in code? I've constructed bindings in code before, but I can't seem to find any static ValueProperty object on the Setter class to pass to BindingOperations.SetBinding().

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf