I'm using the following code :
private Dictionary<string, string> GetNumber { get; set; }
public ReportsLetterTra()
{
GetMonth = new Dictionary<string, string>
{
{"1", "First"},
{"2", "Second"}
};
InitializeComponent();
}
xaml code :
<ComboBox DisplayMemberPath="value" SelectedValuePath="key" ItemsSource="{Binding ElementName=reportslettra,Path=GetNumber}" SelectedIndex="0" Name="cmbFromNumber" />
Why is not bind GetNumber to cmbFromNumber?!