Element binding in Silverlight

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-03-16T01:10:47Z Indexed on 2010/03/16 1:19 UTC
Read the original article Hit count: 435

Filed under:
|
|

Where can I find some good documentation on data/element binding? My Google searches haven't turned much up. I had a custom class with two properties named Text and Value. When I tried binding a list to a listbox it wouldn't work. By chance I modifed my datatemplate from this

<TextBox Text="{Binding Text}"></TextBox>

to this

<TextBox Text="{Binding Path=Text}"></TextBox>

and then everything worked great. I need some indepth documenation/samples to data/element binding. I don't understand why some examples have the path set whereas others do not. A full explanation of this, and all other nice to know tips would be much appreciated.

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about binding