Ejemplo n.º 1
0
        private static object CoerceStartValue(DependencyObject d, object value)
        {
            Contract.Requires(d is RangeBaseControl <T, TInterval>);

            var base2 = d as RangeBaseControl <T, TInterval>;

// ReSharper disable ConditionIsAlwaysTrueOrFalse
// ReSharper disable HeuristicUnreachableCode
            if (base2 == null)
            {
                return(value);
            }
// ReSharper restore HeuristicUnreachableCode
// ReSharper restore ConditionIsAlwaysTrueOrFalse

            if (value != null)
            {
                var doubleVal = (T)value;
                value = DependencyPropertyUtil.CoerceRangeStartValue(base2, doubleVal);
            }
            return(value);
        }
Ejemplo n.º 2
0
        internal static bool IsValidValue(object value)
        {
            bool res = DependencyPropertyUtil.IsValidValue(typeof(T), value);

            return(res);
        }
Ejemplo n.º 3
0
 internal static bool IsValidChange(object value)
 {
     return(DependencyPropertyUtil.IsValidChange(typeof(TInterval), value));
 }
Ejemplo n.º 4
0
 internal static bool IsValidSpace(object value)
 {
     return(DependencyPropertyUtil.IsValidChange(typeof(double), value));
 }