Пример #1
0
		public RangeSlider(float minimum, float maximum, float low, float high) {
			this.minimum = minimum;
			this.maximum = maximum;
			this.low = low;
			this.high = high;

			rangeSliderNode = new RangeSliderNode(this);
			Layer.AddChild(rangeSliderNode);

			// Force anti-aliasing all the time
			DefaultRenderQuality = RenderQuality.HighQuality;
			InteractingRenderQuality = RenderQuality.HighQuality;

			PanEventHandler = null;
			ZoomEventHandler = null;
			rangeSliderNode.AddInputEventListener(new RangeSliderEventHandler(this));
			Resize += new EventHandler(RangeSlider_Resize);
		}
Пример #2
0
        public RangeSlider(float minimum, float maximum, float low, float high)
        {
            this.minimum = minimum;
            this.maximum = maximum;
            this.low     = low;
            this.high    = high;

            rangeSliderNode = new RangeSliderNode(this);
            Layer.AddChild(rangeSliderNode);

            // Force anti-aliasing all the time
            DefaultRenderQuality     = RenderQuality.HighQuality;
            InteractingRenderQuality = RenderQuality.HighQuality;

            PanEventHandler  = null;
            ZoomEventHandler = null;
            rangeSliderNode.AddInputEventListener(new RangeSliderEventHandler(this));
            Resize += new EventHandler(RangeSlider_Resize);
        }