Exemple #1
0
        private void StickDownEvent(ButtonClickEventArgs obj)
        {
            float stepSize = (this.MaxValue.Value() / 16f);

            if (this.StepSize.HasValue())
            {
                stepSize = this.StepSize.Value();
            }

            float tmp = this.Value.Value() - stepSize;

            if (tmp < 0)
            {
                tmp = 0;
            }

            this.Value.SetDVValue(tmp);
        }
Exemple #2
0
        private void ClickEvent(ButtonClickEventArgs obj)
        {
            Debug.WriteLine("Vertical Slider Click:" + obj.ClickPosition + ", " + obj.ClickSource);

            this.Value.Value = MaxValue.Value() * (1f - obj.ClickPosition.Y);
        }
        private void ClickEvent(ButtonClickEventArgs obj)
        {
            Debug.WriteLine("Horizontal Slider Click:" + obj.ClickPosition + ", " + obj.ClickSource);

            this.Value.Value = MaxValue.Value() * obj.ClickPosition.X;
        }