I\'ve said it before and I\'ll say it again, the easiest examples for WPF are also the hardest to find on the web :)
I have a combo box that I need to display but it
You can also add items in code:
cboWhatever.Items.Add("SomeItem");
Also, to add something where you control display/value, (almost categorically needed in my experience) you can do so. I found a good stackoverflow reference here:
Key Value Pair Combobox in WPF
Sum-up code would be something like this:
ComboBox cboSomething = new ComboBox();
cboSomething.DisplayMemberPath = "Key";
cboSomething.SelectedValuePath = "Value";
cboSomething.Items.Add(new KeyValuePair("Something", "WhyNot"));
cboSomething.Items.Add(new KeyValuePair("Deus", "Why"));
cboSomething.Items.Add(new KeyValuePair("Flirptidee", "Stuff"));
cboSomething.Items.Add(new KeyValuePair("Fernum", "Blictor"));