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

Issue with Xamarin.Forms 2.0.0.6482, IsVisible Binding when in AbsoluteLayout

$
0
0

In XAML:

<AbsoluteLayout>
    <ContentView IsVisible="{Binding IsContentVisible}" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All">
        <Image Source="SomeImage"  />
    </ContentView>
</AbsoluteLayout>

When the IsContentVisible property changes, the ContentView becomes visible, however, the contained Image does not. Note that the problem only occurs if the ContentView is contained within an AbsoluteLayout. If there is no containing AbsoluteLayout, then the Image becomes visible as expected. The IsVisible value does appear to be propagating to the Image so I suspect it is a layout or measuring issue. This used to work pre 2.0+.


Viewing all articles
Browse latest Browse all 75885

Trending Articles



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