UWP SfTabView CenterButton throws error

Hi together,

when CenterButton is configured, I run into the error only on UWP,  Android & IOS are running without error:

If I take the Centerbutton config out of the code, UWP is than working fine again

  at Windows.UI.Xaml.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Syncfusion.XForms.UWP.TabView.SfTabView.<UpdateTabViewProperties>d__118.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__7_0(Object state)
   at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()

I use following Setup for the centerbutton:

        <tabView:SfTabView x:Name="tabView" OverflowMode="CenterButton"
                            VisibleHeaderCount="2"
                           TabItemTapped="TabView_TabItemTapped"
                           SelectionChanged="Handle_SelectionChanged"
                           EnableSwiping="True"
                           IsScrollButtonEnabled="True"
                           TabHeaderPosition="Top"
                           DisplayMode="Image">

            <tabView:SfTabView.CenterButtonSettings>
                <tabView:CenterButtonSettings  Height="64" Width="64"
                                                   Title="CenterButton" TitleFontColor="Green"
                                                   BackgroundColor="Transparent">
                </tabView:CenterButtonSettings>
            </tabView:SfTabView.CenterButtonSettings>
            <tabView:SfTabView.CenterButtonView>
                <Grid>
                    <Image Source="AnalyseBtn.png"
                               Aspect="AspectFill"
                               VerticalOptions="CenterAndExpand"
                               HorizontalOptions="CenterAndExpand">
                        <Image.GestureRecognizers>
                            <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" />
                        </Image.GestureRecognizers>
                    </Image>
                </Grid>
            </tabView:SfTabView.CenterButtonView>

Thanks,

Markus

2 Replies 1 reply marked as answer

SP Sakthivel Palaniyappan Syncfusion Team June 15, 2020 09:27 AM UTC

Hi Markus,

Greetings from Syncfusion.

We have analyzed your query and we would like to inform that the reported issue occurs due to enable the IsScrollButtonsEnabled property. IsScrollbutton is working only when setting Overflow mode is scroll.

Please refer the below link for more details about ScrollButton
https://help.syncfusion.com/xamarin/tabbed-view/scrollbutton-header  

We suggest you to resolve the reported issue by removing the IsScrollButtonsEnabled from the code snippet if you are set overflow mode as center. However, we will fix the reported issue internally and include the fix in our upcoming weekly NuGet which is expected to be rolled out on June 23, 2020.

Regards,
Sakthivel P.



SP Sakthivel Palaniyappan Syncfusion Team June 24, 2020 06:44 AM UTC

Hi Markus,

We have fixed the reported issue and included the issue fix in our latest Weekly NuGet release update version 18.1.0.59 which is available for download (https://www.nuget.org/).

We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.

Regards,
Sakthivel P.


Marked as answer
Loader.
Up arrow icon