/// <summary> /// Handles the ValueChanged event of the slider3 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="ChangedEventArgs" /> instance containing the event data.</param> void slider3_ValueChanged(object sender, ChangedEventArgs e) { textblock2.Text = "NewValue: " + e.NewValue + " OldValue: " + e.OldValue; }
/// <summary> /// Handles the ValueChanged event of the ProgressBar control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="ChangedEventArgs" /> instance containing the event data.</param> private void ProgressBar_ValueChanged(object sender, ChangedEventArgs e) { if (this.ValueChanged != null) { this.ValueChanged(this, e); } }
/// <summary> /// Handles the ValueChanged event of the progressbar4 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="ChangedEventArgs" /> instance containing the event data.</param> void progressbar4_ValueChanged(object sender, ChangedEventArgs e) { info2.Text = "NewValue: " + e.NewValue + " OldValue: " + e.OldValue; }
/// <summary> /// Handles the RealTimeValueChanged event of the Slider control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="ChangedEventArgs" /> instance containing the event data.</param> private void Slider_RealTimeValueChanged(object sender, ChangedEventArgs e) { if (this.RealTimeValueChanged != null) { this.RealTimeValueChanged(this, e); } }
private void sliderRot_RealTimeValueChanged(object sender, ChangedEventArgs e) { this.cubeTransform.LocalRotation = new Vector3(MathHelper.ToRadians(this.sliderRotX.Value), MathHelper.ToRadians(this.sliderRotY.Value), 0); }