예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }