Hi guys,
Trying to use a Slider, see this code in a ContentPage descendant:
Content = new StackLayout
{
Children =
{
new Slider
{
Minimum = 5,
Maximum = 30,
Value = 10,
},
}
};
The first few lines of the error callstack says that Minimum value is invalid, can't see why though:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Value was an invalid value for Minimum
Parameter name: value
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) [0x00000] in <filename unknown>:0
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle, Boolean checkAccess) [0x00000] in <filename unknown>:0
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in <filename unknown>:0
at Xamarin.Forms.Slider.set_Minimum (Double value) [0x00000] in <filename unknown>:0
Im guessing I should raise this on Bugzilla?
Cheers
John