I am populating my WPF ComboBox like this
foreach (Function fx in XEGFunctions.GetAll())
{
ComboBoxItem item = new ComboBoxItem();
item.Content = fx.Name;
item.ToolTip = fx.Signature;
//item.( some property ) = fx.FunctionValue;
cmbBoxTransformation.Items.Add(item);
}
cmbBoxTransformation.SelectedIndex = 0;
How can I set some different value to each ComboBoxItem.
If the value you’re looking to set is only used in the back end, and not displayed to the user, the Tag property is probably your best bet.