private static void OnEnumBindingChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { EnumCheckBox <T> enumCheckBox = o as EnumCheckBox <T>; if (enumCheckBox != null) { enumCheckBox.OnEnumBindingChanged((T)e.OldValue, (T)e.NewValue); } }
private static object OnCoerceEnumBinding(DependencyObject o, object value) { EnumCheckBox <T> enumCheckBox = o as EnumCheckBox <T>; if (enumCheckBox != null) { return(enumCheckBox.OnCoerceEnumBinding((T)value)); } else { return(value); } }