There is a code like this:
public class A { public string Name { get; } public object SomeThing { get; } } public ObservableCollection<A> AList { get; } = new ObservableCollection<A>(); And there is a ListBox whose elements need to bind to the elements of the AList collection. More precisely only on their Name property. Here's how to do it? Just to not distribute it in two collections. I would not want to.
<ListBox.ItemTemplate> <DataTemplate> <TextBox/> </DataTemplate> </ListBox.ItemTemplate>