private static void OnTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ComboChecked source = d as ComboChecked; string value = (string)e.NewValue; if (string.IsNullOrWhiteSpace(value) == true) { source.Text = source.DefaultText; } }
private static void OnItemsSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ComboChecked source = d as ComboChecked; source.SetText(); }