You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
In our custom control, we are providing the DataTemplate property for view customization support.
When handling the visibility of a child through binding it does not work properly.
If we set the IsVisible to the view initially as 'True' it works fine when changing visibility a run time. But when visibility is 'false' when control is loaded and changing its value at run time, doesn't works.
Steps to Reproduce
Run the sample.
Click on the open button to navigate to the page, where the control is loaded.
Click the change visibility button to change the visibility of the grid, loaded inside the template.
You can see the changing visibility works for items to which the grid is visible at initial loading, but others, not works.
Expected Behavior
The visibility of the item should change when changed.
Actual Behavior
Grid is not visible when set IsVisible as true in button clicked event until you rotate the screen.
Basic Information
IDE: VS2019
Platform Target Frameworks:
Android: 9.1
Nuget Packages: Xamarin.Forms 3.6.0.344457
Screenshots
Attached the issue reproducible video in the below attachment.
I changed over your custom layout to use a collectionview with data templates and it works fine there. So this is going to be something that's wrong with your custom layout code that's most likely not resizing the container when the grids visibility changes.
When the grids visibility is zero it has no bounds and then when it changes it gets remeasured. I'm guessing the parent container isn't reacting to this
Description
In our custom control, we are providing the DataTemplate property for view customization support.
When handling the visibility of a child through binding it does not work properly.
If we set the IsVisible to the view initially as 'True' it works fine when changing visibility a run time. But when visibility is 'false' when control is loaded and changing its value at run time, doesn't works.
Steps to Reproduce
Expected Behavior
The visibility of the item should change when changed.
Actual Behavior
Grid is not visible when set IsVisible as true in button clicked event until you rotate the screen.
Basic Information
Screenshots
Attached the issue reproducible video in the below attachment.
Reproduction Link
Visibility_Issue.zip
The text was updated successfully, but these errors were encountered: