I have this model:
public class Device {
public string Name { get; set; }
public SomeOtherType SomeOtherStuff { get; set; }
}
And this list:
ObservableCollection<Device> DevicesCollection { get; set; }
which I change from time to time.
I also use a custom UserControl
I made, this way:
<my:MyCustomListControl ItemsSource="{what goes here???}" />
this control usage is supposed to shows a list of all Device
s, but only their Name
property.
So how do I bind the ItemsSource
only to the Name
property of the collection?