There is a combobox:
<ComboBox Name="MyBox" SelectedIndex="0" FontSize="20"> <ComboBoxItem>-</ComboBoxItem> </ComboBox>
Here is how it is filled:
public void FillComboBox() { foreach (var res in list) MyBox.Items.Add(res.Name); }
It is necessary that when the window opens, the SelectedItem property in the ComboBox is an item with Name = "Ivan". Plus make ComboBox ReadOnly. Those. so that from it it was impossible to choose anything.