There is a code, I take the names of all the pictures in the grid and write them down to the List . Then for the combobox set this List as a data source. It is filled, but the names do not display. In XAML wrote:
DisplayMemberPath="Name" Because I took the names Image . The list fills, but does not display:
public void InputImage() { var children = grid.Children; foreach (var child in children) { var image = child as Image; if (image is Image) { Names.Add(image.Name); } } imglist.ItemsSource = Names; }