diff options
author | Samantha Houts <samantha@teamredwall.com> | 2016-09-27 11:12:49 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-09-27 11:12:49 -0700 |
commit | ee3c84f05175934a9d847a3d867e370c4b301a99 (patch) | |
tree | 7a7f246dcc0c3e70ed533415da5941838e16ef4e /Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla42602.cs | |
parent | 3e0ee965d710768f1c434b469f8c1c8371b7659a (diff) | |
download | xamarin-forms-ee3c84f05175934a9d847a3d867e370c4b301a99.tar.gz xamarin-forms-ee3c84f05175934a9d847a3d867e370c4b301a99.tar.bz2 xamarin-forms-ee3c84f05175934a9d847a3d867e370c4b301a99.zip |
[Win] Will arrange native children of custom renderers (opt-in) (#322)
* Add repro for 42602
* [Win] Add option to arrange native children
* [Win] Don't allocate arrangedChildren unless required
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla42602.cs')
-rw-r--r-- | Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla42602.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla42602.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla42602.cs new file mode 100644 index 00000000..05e41013 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla42602.cs @@ -0,0 +1,39 @@ +using System; + +using Xamarin.Forms.CustomAttributes; +using Xamarin.Forms.Internals; + +namespace Xamarin.Forms.Controls +{ + [Preserve(AllMembers = true)] + [Issue(IssueTracker.Bugzilla, 42602, "[Win] Custom BoxView Renderer Does Not Render All Its Children Elements", PlatformAffected.WinRT)] + public class Bugzilla42602 : TestContentPage + { + AbsoluteLayout content; + + protected override void Init() + { + //background white 800 x 600 square + content = new AbsoluteLayout() + { + BackgroundColor = Color.White, + WidthRequest = 800, + HeightRequest = 800, + VerticalOptions = LayoutOptions.CenterAndExpand, + HorizontalOptions = LayoutOptions.CenterAndExpand + }; + + //test TextBoxView 400 x 400, color gray, should have a red ellipse and a red "hello world" + + var test = new TextBoxView() { WidthRequest = 300, HeightRequest = 300, BackgroundColor = Color.Blue }; + content.Children.Add(test, new Point((content.WidthRequest - test.WidthRequest) / 2f, (content.HeightRequest - test.HeightRequest) / 2f)); + + Content = content; + } + + public class TextBoxView : BoxView + { + + } + } +} |