I'm trying to make a slider and depending on the value display an image with a switch case. However with this c# code, it goes straight to case 1. Is it possible to wait the user click and drag and once stopped it goes to my switch case ? And also how do i start the slider at a special tick for example 3 ? Thanks in advance! Here is my c# code:
private void Slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
switch (Slider.Value.ToString())
{
case "0":
...
case "1":
...
}
}
Here is my xaml for the button specs :
<Slider HorizontalAlignment="Left" Height="29" Margin="474,375,0,0" VerticalAlignment="Top" Width="172" Minimum="0" Maximum="4" IsSnapToTickEnabled="True" TickPlacement="BottomRight" Foreground="Black" Ticks="1,2,3" ValueChanged="Slider_ValueChanged" Name="Slider"/>