Created
April 6, 2018 10:17
-
-
Save tugcearar/b4fcb63891c53e82fb6e3eb613e5c822 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Slider_ValueChanged(object sender, Xamarin.Forms.ValueChangedEventArgs e) | |
{ | |
var newStep = Math.Round(e.NewValue / 100); | |
mySlider.Value = newStep * 100; | |
lblText.Text = mySlider.Value.ToString(); | |
lblText.TranslateTo(mySlider.Value * ((mySlider.Width - 40) / mySlider.Maximum) , 0, 100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment