public static double GetThumbThickness(Controls.ToggleSwitch obj) { ValidationHelper.NotNull(obj, "obj"); DoubleUtil.EnsureNonNegative(); return(BoxingHelper <double> .Unbox(obj.GetValue(ThumbThicknessProperty))); }
public static double GetTrackSize([NotNull] Controls.ToggleSwitch obj) { ValidationHelper.NotNull(obj, () => obj); DoubleUtil.EnsureNonNegative(); return(BoxingHelper <double> .Unbox(obj.GetValue(TrackSizeProperty))); }