Bug 44981 - On UWP, an Image with IsVisible=false initially is sized differently when IsVisible is toggled, to an Image that is initially visible
Summary: On UWP, an Image with IsVisible=false initially is sized differently when IsV...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.1
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: E.Z. Hart [MSFT]
Depends on:
Reported: 2016-10-03 16:38 UTC by John Hardman
Modified: 2017-06-19 21:10 UTC (History)
5 users (show)

Tags: UWP Image IsVisible HeightRequest WidthRequest
Is this bug a regression?: ---
Last known good build:

Repro attempt (256.20 KB, application/x-zip-compressed)
2017-02-06 22:10 UTC, E.Z. Hart [MSFT]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description John Hardman 2016-10-03 16:38:04 UTC
With two Image objects added to a Grid, where the .png files for the images are the same size, and both Image objects have WidthRequest and HeightRequest set the same, and both are added to the same cell in the Grid, but one initially has IsVisible=true and the other has IsVisible=false, when the one with IsVisible=false is later changed to true, it is sized differently from the other one. It is as if some of the initial properties (e.g. HeightRequest and WidthRequest) are not retained if the Image was initially IsVisible.

The long code sample attached to bug 44680 can be used to see this happen.

It does not happen on Android or iOS.
Comment 1 John Hardman 2016-10-03 16:44:01 UTC
I should have mentioned that I am using XF
Comment 2 John Hardman 2016-10-03 20:05:02 UTC
 I've just tried using AbsoluteLayout instead of Grid. The same thing happens.
Comment 3 E.Z. Hart [MSFT] 2017-02-06 22:10:36 UTC
Created attachment 19739 [details]
Repro attempt


I whipped up a Forms project to reproduce this issue, but everything seems to be working correctly. Can you take a look at it and tell me if I'm missing something in the repro?
Comment 4 Rui Marinho 2017-06-19 21:10:37 UTC
Because we have not received a reply to our request for more information we are
closing this issue. If you are still encountering this issue, please reopen the
ticket with the requested information. Thanks!