private static void OnValueChanged(DependencyObject dp, DependencyPropertyChangedEventArgs args) { string str = ""; if (args.NewValue != null) { str = args.NewValue.ToString(); } EditComboBox ec = dp as EditComboBox; ec.Value = str; ec._TextBoxInput.Text = str; }
public EditComboBox() { DefaultStyleKey = typeof(EditComboBox); editComboBox = this; }