Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Slider control won't let me set Minimum EDIT: XF 1.4.1

$
0
0

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


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>