Friday, September 18, 2009

Navigating data cheetlist

I’ll be adding here binding techniques that are useful and hard to remember. Happy navigating.

Map of London GPS-Tracking by photo808.

XAML syntax

binds to…

{Binding} current context
{Binding User} context.User
{Binding User.FirstName} context.User.FirstName
{Binding ElementName=editBox2, Path=Text} “Text” property of XAML “editBox2” control
{Binding RelativeSource={RelativeSource Self}, Path=User} User property of the target element
{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type MyUserClass}}, Path=FirstName} going up in data tree until MyUserClass is met and going back down after FirstName.

More here.

0 comments:

Post a Comment