示例#1
0
        private static void OnValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            CustomPropertyItem propertyItem = o as CustomPropertyItem;

            if (propertyItem != null)
            {
                propertyItem.OnValueChanged(( object )e.OldValue, ( object )e.NewValue);
            }
        }
示例#2
0
        private static object OnCoerceValueChanged(DependencyObject o, object baseValue)
        {
            CustomPropertyItem prop = o as CustomPropertyItem;

            if (prop != null)
            {
                return(prop.OnCoerceValueChanged(baseValue));
            }

            return(baseValue);
        }