We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

sfTabView.CenterButtonView.IsVisible bug

whenever I try to set the sfTabView.CenterButtonView.IsVisible to true or false, using Xamarin.Forms.MessagingCenter.Subscribe from another tab, the Navigation stop working properly, I can't leave the first tab anymore. Here is my code.


private void Messaging()

{

Xamarin.Forms.MessagingCenter.Subscribe(this, "DisplayMode", (sender, values) =>

{

DisplayMode(values);

});

Xamarin.Forms.MessagingCenter.Subscribe(this, "SelectionChanged", (sender, values) =>

{

SelectionChanged(values);

});


}


private void DisplayMode(bool isVisible)

{

if (!isVisible)

{

sfTabView.DisplayMode = TabDisplayMode.NoHeader;

sfTabView.CenterButtonView.IsVisible = false;


}

else

{

sfTabView.DisplayMode = TabDisplayMode.ImageWithText;

sfTabView.CenterButtonView.IsVisible = true;


}

}

private void BackToHome()

        {

            MessagingCenter.Send(App.Current, "SelectionChanged", 0);

        }




1 Reply

VV Vijayakumar Viswanathan Syncfusion Team December 27, 2022 02:10 PM UTC

Hi Mario,

Thanks for contacting Syncfusion support.

We have examined the issue and were unable to reproduce the reported behavior using the provided code snippet. In order to further investigate the issue, it would be helpful if you could provide additional details such as a sample for reproducing the issue and the steps required to replicate the issue.


Regards,

Vijayakumar V


Loader.
Live Chat Icon For mobile
Up arrow icon