Answer the question
In order to leave comments, you need to log in
How to set a Binding to a class field contained in another class?
Available List<A>
,
on the form listbox ItemsSource=..List<A>
for it is created
<ListBox.ItemTemplate>
<DataTemplate>
public class Properties
{
public string Name { get; set; }
public string Size { get; set; }
}
class A
{
public Properties prop;
}
Answer the question
In order to leave comments, you need to log in
Yes, it turns out I didn’t see it, get; set from public Properties prop; is absent
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question