Bug 60714 - Different controls behaivor after navigating back
Summary: Different controls behaivor after navigating back
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.4.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-11-16 09:59 UTC by Dim Tim
Modified: 2017-12-13 22:18 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

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 Dim Tim 2017-11-16 09:59:31 UTC
Recently Ive updated to Forms 2.4. In my xamarin app in main menu I have ListView with buttons. On the start everything is fine, but when I navigate to some other page and come back to home, text in button is aligned left. I've simplified code for this, where this issue is reproduced:

<Grid VerticalOptions="Fill" x:Name="MainGrid"
  <RowDefinition Height="35*" />
  <RowDefinition Height="65*" />

<ScrollView VerticalOptions="Start" Orientation="Vertical" Grid.Row="1" BackgroundColor="Transparent" x:Name="ButtonsLayout">

  <ListView Grid.Row="1" VerticalOptions="Start"
                   ItemsSource="{Binding HomeScreenSettings.AppHomeScreenActions}">
    <Button Text="{Binding DisplayText}" Clicked="ButtonOnClicked" 

If I delete grid or scrollview - everything is working fine. But I need them.

And one more bug: I got a complex page with an image in it. It is also located inside scrollview and grid. On first page load it is shown Ok, but on second time when I navigate there (I am generating new Page for the old VM) sometimes I got wrong UI - property Aspect="AspectFill" is ignored and sometimes everything is fine. And again, if Ill move the image outside of grid or scrollview - everything work ok always.

Now I am working in Forms, but Ive tried also 2.5 release version, same bug ther. 
Ive tried to use and there is no such bug. Looks like there is some bug in > 2.4.
Comment 1 Paul DiPietro [MSFT] 2017-11-16 15:19:05 UTC
Can you please test with 2.5 which is now stable and upload a minimized reproduction solution for us to run to investigate the issue further? Does this also only occur on one platform in particular, or any of them?

If you are experiencing a separate bug, please file a separate issue unless its cause appears directly related to the first, as we strongly prefer not having multiple issues on a single report.
Comment 2 Paul DiPietro [MSFT] 2017-12-13 22:18:41 UTC
Due to the lack of a response, we will be closing this issue for now. Please reopen this issue or alternatively file a new issue on GitHub (https://github.com/xamarin/Xamarin.Forms/issues) with a reproduction and more information per the above comment if this issue still occurs with the latest 2.5.0 stable release of Forms. Thanks!