Jaa


WPF Soup To Nuts: Databinding Webcast

Here we are, at week 9 in my WPF Soup To Nuts Webcast Series.  Today's topic is one that everyone wants to understand... Databinding.  How does databinding work in WPF?  How can I create a custom object to bind to?  What kinds of things can I bind to?  How do I do data validation?  These are just some of the great questions that I have received about WPF's Databinding capabilities.  And in this webcast, I'll answer them all.

You will learn how you can bind to other objects in the XAML tree.  You also see how to bind via code.  I'll even cover cool stuff, like how to make data binding pretty with DataTemplates and how to let your users know when there is a problem with Validation Rules.

This is a jam packed webcast with plenty of demo code, so don't miss it!  You can sign up right here!

As always, my demo code is attached to this blog post.

Bill

WPFDatabinding.zip

Comments

  • Anonymous
    October 01, 2007
    Hi, could you explain the following: <StackPanel x:Name="MyStackPanel">  <TextBox ... Text="{Binding Name}" /> In code you set the DataContext of MyStackPanel to the List<Person> people object. The TextBox.Text property is than bound to the Name property. How does WPF know where to look for this property. Does it understand that the datacontext is a List? I'm a bit confused... YS Jaap Taal

  • Anonymous
    October 06, 2007
    Actually, if WPF can not find the datacontext attached to the current object, it walks up the tree to find the next on up in the tree of controls until it finds a valid context which it can bind to. Bill