WPF Binding XAML vs C#

Posted by kubal5003 on Stack Overflow See other posts from Stack Overflow or by kubal5003
Published on 2010-06-07T07:52:10Z Indexed on 2010/06/08 2:42 UTC
Read the original article Hit count: 350

Filed under:
|

Hello, I've got a strange problem - binding created through XAML (both ways by markup extension or normal) isn't working(BindingOperations.IsDataBound returns false and in fact there is no Binding object created). When I do literally the same from code everything is working perfectly.

One more thing is that the Binding in XAML is created in a DataTemplate - what's funny about that when I use the DataTemplate for the first time it fails, then I fix it from code (add binding to specific objects) and while adding more objects to the collection the binding set in XAML just works. If I try to remove all the objects from the collection and then add a new one the binding fails once again.

In reality this is a shortened version of another of my questions. For details please refer to: http://stackoverflow.com/questions/2986511/wpf-debugging-avalonedit-binding-to-document-property

Sorry for doing it this way, but there's no answer and it's probably too long for anybody to read.

    -

© Stack Overflow or respective owner

Related posts about wpf

Related posts about databinding