Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Tabview does not show content when used with StateLayout #1182

Open
WiproSarthak opened this issue Apr 8, 2021 · 4 comments
Open

[Bug] Tabview does not show content when used with StateLayout #1182

WiproSarthak opened this issue Apr 8, 2021 · 4 comments
Labels
a/TabView bug Something isn't working. Breaky break.

Comments

@WiproSarthak
Copy link

WiproSarthak commented Apr 8, 2021

Tabview do not load each tabItem content when used with statelayout.When the page loads for the first time tabview is hidden due to loading state of statelayout once statelayout currentstate becomes succes, only TabView Header shows its content didn't show up

Steps to Reproduce

  1. Put TabView insisde StateLayout success state
  2. Open page with any other state then success.
  3. Wait for few second and set Statelayout current state to Success

Expected Behavior

TabView should appear with contents of each TabItem

Actual Behavior

Only Tab header is visible content of each Item didn't show up

Basic Information

  • Version with issue: 1.1.0
  • Last known good version:
  • IDE: Visual Studio

Reproduction Link :
TabViewStateLayoutIssueRepo.zip

Steps:

  1. MainPage opens with Empty state for StateLayout
  2. Click on LoadTabView
  3. Current state becomes succes only tabview headers show each tab items content remains still hidden
@WiproSarthak WiproSarthak added bug Something isn't working. Breaky break. s/unverified This issue needs verification/reproduction by a team member. PRs cannot be accepted/merged. labels Apr 8, 2021
@jsuarezruiz jsuarezruiz removed the s/unverified This issue needs verification/reproduction by a team member. PRs cannot be accepted/merged. label Apr 13, 2021
@Chris-Marassovich
Copy link

I have also hit this issue.
A shame as the StateLayout is awesome as is the TabView ... yet cannot work together. :-(

@WiproSarthak did you find a workaround? I assume you went back to having show/hide variables in your VM and binding to IsVisible props on the layout?

@SarthakGz
Copy link

SarthakGz commented Nov 19, 2021

@Chris-Marassovich unfortunately I had to move StateLayout from outside to inside the each TabView so TabView will be Visibile when page loads.If we do IsVisible=false to entire TabView by default when page loads so again same issue arises as StateLayout is also doing the same thing.

@bijington
Copy link
Contributor

I suspect this issue relates to #1294

It appears that the underlying CarouselView in the TabView does not correctly update its child views

@SarthakGz
Copy link

This might have fixed by this
xamarin/Xamarin.Forms#13370
need to verify though

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/TabView bug Something isn't working. Breaky break.
Projects
None yet
Development

No branches or pull requests

5 participants