Beispiel #1
0
		void LogEvents(Slider control)
		{
			control.ValueChanged += delegate
			{
				Log.Write(control, "ValueChanged, Value: {0}", control.Value);
			};
		}
Beispiel #2
0
		Slider SetInitialValue ()
		{
			var control = new Slider{
				MinValue = 0,
				MaxValue = 1000, 
				TickFrequency = 100,
				Value = 500
			};
			LogEvents(control);
			return control;
		}
Beispiel #3
0
		Control Default()
		{
			var control = new Slider();
			LogEvents(control);
			return control;
		}
Beispiel #4
0
			/// <summary>
			/// Raises the value changed event.
			/// </summary>
			public void OnValueChanged(Slider widget, EventArgs e)
			{
				widget.Platform.Invoke(() => widget.OnValueChanged(e));
			}
Beispiel #5
0
		protected virtual void LogEvents(Slider control)
		{
			control.ValueChanged += delegate
			{
				Log.Write(control, "ValueChanged");
			};

			LogEvents((Control)control);
		}
Beispiel #6
0
		Control SliderControl()
		{
			var control = new Slider();
			LogEvents(control);
			return control;
		}