Bind a textblock in a nested list member
I have these classes:
public class Datum
{
.
.
public List<Brewery> breweries { get; set; }
.
.
}
public class Brewery
{
public string name { get; set; }
.
.
}
I have a listbox and I bind its' members to the properties of Datum class
by creating a List. But there's a textbox, which I want to bind to the
property name of the Brewery class. If I set the binding path to
breweries.name it doesn't work.
How is it possible to make it work?
No comments:
Post a Comment