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); }
public static void SetAlignment(DependencyObject obj, RangeAlignment value) { obj.SetValue(AlignmentProperty, value); }
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; }