How to populate a ComboBox in XAML How to populate a ComboBox in XAML wpf wpf

How to populate a ComboBox in XAML


You will use Tag, not Value in xaml.This would be like this:

<ComboBox>     <ComboBoxItem Tag="L" IsSelected="True">Low</ComboBoxItem>     <ComboBoxItem Tag="H">High</ComboBoxItem>     <ComboBoxItem Tag="M">Medium</ComboBoxItem></ComboBox>