SegmentedControl
SegmentedControl copied to clipboard
Doesn't work with Xamarin.Forms Previewer
When trying to display page with SegmentedControl in Xamarin.Forms Previewer a Null Reference Exception is thrown.
In digging into the code it looks like nativeControl is null within SegmentedControlRenderer.Element_SizeChanged method.
Here is the line of code where nativeControl is set to null. nativeControl = (RadioGroup)layoutInflater.Inflate(Resource.Layout.RadioGroup, null);
It works on previewer without any extra fix:
