Xamarin.forms: TabbedPage: tab pages do not disappear when IsVisible=False

Created on 18 Feb 2019  路  3Comments  路  Source: xamarin/Xamarin.Forms

Description

Tab pages in a TabbedPage do not disappear when their IsVisible property is set to False. Instead, the tab remains, but the content of the tab is blank. Not entirely what one would expect.

Steps to Reproduce

  1. Set up a TabbedPage with some tab pages
  2. Set one of the pages' IsVisible property to False
  3. Observe that the page tab does not disappear

Expected Behavior

The entire page is no longer visible.

Actual Behavior

The page tab is visible.

Basic Information

  • Version with issue: 3.5.0
  • Last known good version: Unknown
  • IDE: VS 2017
  • Platform Target Frameworks:

    • Android: 8.1

  • Android Support Library Version: 28.0.1
  • Nuget Packages:
  • Affected Devices:

Screenshots

Reproduction Link

XamarinFormsSample.zip

3 help wanted low bug up-for-grabs

Most helpful comment

I know what the workaround is. I just think this should work. :-)

All 3 comments

@mfeingol hi
I guess you should Remove it manually from TabbedPage.

tabbedPage.Children.Remove(invisiblePage);

I know what the workaround is. I just think this should work. :-)

@mfeingol hi
I guess you should Remove it manually from TabbedPage.

tabbedPage.Children.Remove(invisiblePage);

This hack around doesn't really work for an MVVM architecture.

Advocating this problem be looked into a bit more urgently please. This should be basic functionality of a Tab display, and is a blatant bug.

Just to make aware, the same issue with IsEnabled property on TabbedPage is also present.
Expected result when IsEnabled="False" is for the tab to be displayed but disabled with no action taking place on touch.

Was this page helpful?
0 / 5 - 0 ratings