From 5f8f47ff7ce934f4937ec428b3c1def6286f14da Mon Sep 17 00:00:00 2001 From: "E.Z. Hart" Date: Mon, 2 May 2016 16:19:12 -0600 Subject: Prep VisualElement (and descendants) for removal of InternalsVisibleTo (#141) --- Xamarin.Forms.Platform.iOS/NativeViewWrapperRenderer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Xamarin.Forms.Platform.iOS/NativeViewWrapperRenderer.cs') diff --git a/Xamarin.Forms.Platform.iOS/NativeViewWrapperRenderer.cs b/Xamarin.Forms.Platform.iOS/NativeViewWrapperRenderer.cs index b21c8593..58cacdc6 100644 --- a/Xamarin.Forms.Platform.iOS/NativeViewWrapperRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/NativeViewWrapperRenderer.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using Xamarin.Forms.Internals; #if __UNIFIED__ using CoreGraphics; using UIKit; @@ -33,7 +34,7 @@ namespace Xamarin.Forms.Platform.iOS { if (Element?.LayoutSubViews == null) { - Element?.InvalidateMeasure(InvalidationTrigger.MeasureChanged); + ((IVisualElementController)Element)?.InvalidateMeasure(InvalidationTrigger.MeasureChanged); base.LayoutSubviews(); return; } -- cgit v1.2.3