summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT
diff options
context:
space:
mode:
authorBradChase2011 <brchase07@yahoo.com>2017-09-27 08:47:57 -0400
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:33:21 +0900
commit9fe8e97c7235dc4e3dfe83f80405d8d7cd14298e (patch)
treecfa86545a7efca65c950337c49c6e38939514231 /Xamarin.Forms.Platform.WinRT
parent117b9e069377b22bf8de13c3e8082fc97c1eef1b (diff)
downloadxamarin-forms-9fe8e97c7235dc4e3dfe83f80405d8d7cd14298e.tar.gz
xamarin-forms-9fe8e97c7235dc4e3dfe83f80405d8d7cd14298e.tar.bz2
xamarin-forms-9fe8e97c7235dc4e3dfe83f80405d8d7cd14298e.zip
[UWP] Controls are ignoring their rendering routines. (#1089)
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r--Xamarin.Forms.Platform.WinRT/VisualElementRenderer.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/VisualElementRenderer.cs b/Xamarin.Forms.Platform.WinRT/VisualElementRenderer.cs
index 4843fd74..94581d5c 100644
--- a/Xamarin.Forms.Platform.WinRT/VisualElementRenderer.cs
+++ b/Xamarin.Forms.Platform.WinRT/VisualElementRenderer.cs
@@ -413,8 +413,6 @@ namespace Xamarin.Forms.Platform.WinRT
Control.HorizontalAlignment = HorizontalAlignment.Stretch;
Control.VerticalAlignment = VerticalAlignment.Stretch;
- Children.Add(control);
-
if (Element == null)
throw new InvalidOperationException(
"Cannot assign a native control without an Element; Renderer unbound and/or disposed. " +
@@ -425,7 +423,7 @@ namespace Xamarin.Forms.Platform.WinRT
control.GotFocus += OnControlGotFocus;
control.LostFocus += OnControlLostFocus;
-
+ Children.Add(control);
UpdateBackgroundColor();
if (Element != null && !string.IsNullOrEmpty(Element.AutomationId))