Putting WebView in SfTabView creates error

Running the following gets me an System.NullReferenceException: Object reference not set to an instance of an object. error.

<tabView:SfTabItem Title="Favorites">
                    <tabView:SfTabItem.Content>
                        <Grid BackgroundColor="Green" x:Name="FavoritesGrid" >
                            <WebView HeightRequest="100" WidthRequest="100"  >
                                <WebView.Source>
                                    <HtmlWebViewSource Html="Hi"></HtmlWebViewSource>
                                </WebView.Source>
                            </WebView>
                        </Grid>
                    </tabView:SfTabItem.Content>
                </tabView:SfTabItem>

If I move the WebView out of the SfTabView and put it elsewhere on the page, it renders fine with no errors.  Is this a bug, or am I doing something wrong?  Same results if I use a url instead of html.  They both work outside SfTabView, but not in the item template.

2 Replies

DB David Brenchley April 23, 2018 09:42 PM UTC

using 16.1.0.32 and xamarin.forms 2.5.1.444934


RB Rabhia Beham Kathar Mideenar Syncfusion Team April 24, 2018 07:21 AM UTC

Hi David,

Thank you for contacting Syncfusion Support.

We have checked the reported issue with the SfTabView Control. We have analysed your code snippet and have prepared a sample with the SfTabView Control and have checked the issue with version 16.1451.0.32 and 2.5.1.444934. Unfortunately we could not reproduce the issue from our side. Please have the sample from the below link.

Sample Link: http://www.syncfusion.com/downloads/support/forum/137189/ze/SfTabView204017_31357967427
 

And we have also recorded the video for your reference. Please have the video from the below link.

Video Link: http://www.syncfusion.com/downloads/support/forum/137189/ze/TabView_Video1816162747 

Please check the sample and if the issue still persists from your side please modify the sample with the reproducing steps and also the platform with which you could reproduce the issue which will be helpful for us to analyse further and provide an appropriate solution.

Please let us know if you have any concern.

Regards,
Rabhia Beham K.
 


Loader.
Up arrow icon