public Slider(float min, float max, float stepSize, bool vertical, SliderStyle style)
{
if (min > max)
throw new ArgumentException("min must be > max: " + min + " > " + max);
if (stepSize < 0)
throw new ArgumentOutOfRangeException("stepSize must be > 0: " + stepSize);
Style = style;
_min = min;
_max = max;
_stepSize = stepSize;
_vertical = vertical;
_value = min;
Width = PrefWidth;
Height = PrefHeight;
}