private static double SizeAdjustment(RangeAlignment align, double size)
        {
            switch (align) //how to place item beside given pos
            {
            case RangeAlignment.Center:
                return(size / 2);

            case RangeAlignment.End:
                return(size);
            }
            return(0);
        }
예제 #2
0
 public static void SetAlignment(DependencyObject obj, RangeAlignment value)
 {
     obj.SetValue(AlignmentProperty, value);
 }
예제 #3
0
 public static void SetAlignment(DependencyObject obj, RangeAlignment value)
 {
     obj.SetValue(AlignmentProperty, value);
 }
예제 #4
0
        private static double SizeAdjustment(RangeAlignment align, double size)
        {
            switch (align) //how to place item beside given pos
            {
                case RangeAlignment.Center:
                    return size / 2;
                case RangeAlignment.End:
                    return size;
            }

            return 0;
        }