Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.