public VerticalScrollBar(SliderProps sliderProps, bool adjustMaxAutomatically = false) : base(sliderProps)
        {
            Size = sliderProps.Size;
            DoEventsIfDirectParentIsLocked = true;

            AdjustMaxAutomatically = adjustMaxAutomatically;
        }
Exemple #2
0
        public Slider(SliderProps sliderPorps) : base(sliderPorps)
        {
            Size = new Vector2(-1, -1);
            Min  = sliderPorps.Min;
            Max  = sliderPorps.Max;

            p_StepsCount = Max - Min;

            p_Value = (int)(Min + (Max - Min) / 2);
        }