private void Languages_Initialized(object sender, System.EventArgs e) { var s = ((ComboBox)sender); s.DisplayMemberPath = "Value"; s.SelectedValuePath = "Key"; s.ItemsSource = L10n.GetLanguages(); s.SelectedValue = _persistentData.Options.Language; }