SegmentedControl icon indicating copy to clipboard operation
SegmentedControl copied to clipboard

Doesn't work with Xamarin.Forms Previewer

Open tomKrueger opened this issue 9 years ago • 1 comments

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);

tomKrueger avatar Aug 10 '17 21:08 tomKrueger

It works on previewer without any extra fix:

screen shot 2017-09-01 at 12 52 26 pm

alexrainman avatar Sep 01 '17 17:09 alexrainman