Bug 60056 - [UWP] ViewCell ignores margins of it's child
Summary: [UWP] ViewCell ignores margins of it's child
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.4.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-10-09 12:02 UTC by Marcin Gierlasiński
Modified: 2017-10-18 15:03 UTC (History)
3 users (show)

Tags: viewcell, margin, ac, fr
Is this bug a regression?: Yes
Last known good build:

List in Forms 2.3 (36.54 KB, image/png)
2017-10-09 12:02 UTC, Marcin Gierlasiński
List after upgrading to forms 2.4 (36.71 KB, image/png)
2017-10-09 12:03 UTC, Marcin Gierlasiński

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 Marcin Gierlasiński 2017-10-09 12:02:01 UTC
Hi, after upgrading Xamarin Forms from to margins set for children of ViewCell are ignored. It happens for data templates in ListView and also in TableView. Possible workaround is to wrap ViewCell's content with additional container but it's not great solution for complex data templates.

Sample code to reproduce:

    <StackLayout Margin="15">
         <Label Text="{Binding UserName}" />

Margin "15" is ignored. I have to specify it for all children or put StackLayout into different container.
Comment 1 Marcin Gierlasiński 2017-10-09 12:02:51 UTC
Created attachment 25223 [details]
List in Forms 2.3
Comment 2 Marcin Gierlasiński 2017-10-09 12:03:27 UTC
Created attachment 25224 [details]
List after upgrading to forms 2.4
Comment 3 Paul DiPietro [MSFT] 2017-10-17 18:11:14 UTC
Comment 4 Rui Marinho 2017-10-18 15:03:39 UTC
Should be fixed on 2.4.0 service release 2