Bug 42602 - Custom BoxView Renderer Does Not Render All Its Children Elements
Summary: Custom BoxView Renderer Does Not Render All Its Children Elements
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.1.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-07-15 19:09 UTC by Jimmy [MSFT]
Modified: 2017-03-22 18:39 UTC (History)
5 users (show)

Tags: ac
Is this bug a regression?: Yes
Last known good build:

repro project (45.25 KB, application/zip)
2016-07-15 19:09 UTC, Jimmy [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 Jimmy [MSFT] 2016-07-15 19:09:26 UTC
Created attachment 16687 [details]
repro project

### Overview
In the attached repro project, a Canvas with an Ellipse and TextBlock is added the BoxView renderer's Children property. However only the Ellipse is rendered on screen. This worked before Forms 2.0. and both the Ellipse and TextBlock would be displayed.

### Steps to Reproduce
1. Run the attached repro project

### Expected Results
You will see a red circle and text.

### Actual Results
Only the red circle is rendered.

### Version Info
Tested with Forms 2.3 and Forms 2.3.1-pre2
Comment 1 Samantha Houts [MSFT] 2016-09-27 23:43:27 UTC
This should be fixed in 2.3.3-pre3. However, please be aware that the fix requires a small change to your WinRT/UWP custom renderers. You will need to add ArrangeNativeChildren = true to OnElementChanged(). Please see https://github.com/xamarin/Xamarin.Forms/pull/322/files for a complete example.

Warm regards,
Xamarin Forms Team
Comment 2 Prashant manu 2016-11-03 16:29:13 UTC
I have checked this issue with X.F and add ArrangeNativeChildren = true to OnElementChanged() but I am still facing same issue i.e Only red circle is rendered, text doesn't render. 

Screencast with X.F http://www.screencast.com/t/wdMpsgr1

Screencast with X.F http://www.screencast.com/t/c1wvYdnOYr

Hence reopen this issue.
Comment 3 Parmendra Kumar 2016-11-03 16:31:11 UTC
An update of comment #2,

@Samantha, Could you please have a look and let me know If I have missed anything to verify this issue

Comment 4 Samantha Houts [MSFT] 2017-03-22 17:15:46 UTC
@Jimmy Garrido: Can you please verify if this bug has actually been fixed? It is definitely fixed when I look at it. Thanks!
Comment 5 Jimmy [MSFT] 2017-03-22 18:39:16 UTC
I confirm that I can no longer reproduce this issue with Forms and adding ArrangeNativeChildren = true in the custom renderer.