コード例 #1
0
ファイル: SliderSection.cs プロジェクト: JohnACarruthers/Eto
		void LogEvents(Slider control)
		{
			control.ValueChanged += delegate
			{
				Log.Write(control, "ValueChanged, Value: {0}", control.Value);
			};
		}
コード例 #2
0
ファイル: SliderSection.cs プロジェクト: hultqvist/Eto
		Slider SetInitialValue ()
		{
			var control = new Slider{
				MinValue = 0,
				MaxValue = 1000, 
				TickFrequency = 100,
				Value = 500
			};
			LogEvents(control);
			return control;
		}
コード例 #3
0
ファイル: SliderSection.cs プロジェクト: JohnACarruthers/Eto
		Control Default()
		{
			var control = new Slider();
			LogEvents(control);
			return control;
		}
コード例 #4
0
ファイル: Slider.cs プロジェクト: gene-l-thomas/Eto
			/// <summary>
			/// Raises the value changed event.
			/// </summary>
			public void OnValueChanged(Slider widget, EventArgs e)
			{
				widget.Platform.Invoke(() => widget.OnValueChanged(e));
			}
コード例 #5
0
ファイル: AllControlsBase.cs プロジェクト: mhusen/Eto
		protected virtual void LogEvents(Slider control)
		{
			control.ValueChanged += delegate
			{
				Log.Write(control, "ValueChanged");
			};

			LogEvents((Control)control);
		}
コード例 #6
0
ファイル: AllControlsBase.cs プロジェクト: mhusen/Eto
		Control SliderControl()
		{
			var control = new Slider();
			LogEvents(control);
			return control;
		}