WPF Databinding sintax for complex properties

  • Thread starter Thread starter Shimon Sim
  • Start date Start date
S

Shimon Sim

I have following scenario
I have ListBox that is bound to BindingList<Person>
Person has Address property that has Street property.
How can I bind Street to a TextBlock in ListBox DataTemplate?
Thanks,
Shimon
 
Thanks.
I figured it out. It just Path=Address.Street.
I just needed to send Address's PropertyChanged event to Person class.
Shimon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top