Silverlight 如何给ComboBox赋值

string valor = "Married"; foreach (ComboBoxItem item in Cmb.Items) { if (item.Content.ToString() == valor) { Cmb.SelectedItem = item; } }

你可能感兴趣的:(String,silverlight)