Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

changing Grid.IsVisible to true: child views remain invisible

$
0
0

I have a GridLayout with some child views in it, and initially the grid is invisible (and collapsed), because I set "IsVisible" to false.
Then I have a button to toggle the visibilty of the grid, and when I toggle it for the first time, ie. set IsVisible=true, the grid is not collapsed any more, but all children in it are not visible, there is just a white background. But when I toggle it again (IsVisible=false) and then again (the second time) to IsVisible=true, all child views are visible. I also tried "grid.ForceLayout()" after setting IsVisible to true, but it has no effect.

Any solution to that ?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>