I want to set the slider Value to 10 and then make it possible to move it down or up again, but when I set a Value for the slider, I get an Error which says
this is the code:
<MenuItem Header = "Edit">
<MenuItem Header="Transparence">
<Slider Width="100" Name="transparence" ValueChanged="transparenz_ValueChanged"
IsMoveToPointEnabled="True" Value="10"/>
</MenuItem>
</MenuItem>
this is the method where the exception occures
private void transparenz_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
Input.Opacity = transparenz.Value * 0.1;
}
when I remove the value from the XAML File, everything works fine
I just want to have this Slider start at the end