summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/NativeViewWrapperRenderer.cs
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-05-02 16:19:12 -0600
committerSamantha Houts <samantha@teamredwall.com>2016-05-02 15:19:12 -0700
commit5f8f47ff7ce934f4937ec428b3c1def6286f14da (patch)
tree832d48d28c09eccd8b39838d16b0b9887bff7e55 /Xamarin.Forms.Platform.Android/NativeViewWrapperRenderer.cs
parent70d0e406ec2fcaf8c883d9b7aa2fc287466645ca (diff)
downloadxamarin-forms-5f8f47ff7ce934f4937ec428b3c1def6286f14da.tar.gz
xamarin-forms-5f8f47ff7ce934f4937ec428b3c1def6286f14da.tar.bz2
xamarin-forms-5f8f47ff7ce934f4937ec428b3c1def6286f14da.zip
Prep VisualElement (and descendants) for removal of InternalsVisibleTo (#141)
Diffstat (limited to 'Xamarin.Forms.Platform.Android/NativeViewWrapperRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Android/NativeViewWrapperRenderer.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/NativeViewWrapperRenderer.cs b/Xamarin.Forms.Platform.Android/NativeViewWrapperRenderer.cs
index 49abc02a..2036e4bb 100644
--- a/Xamarin.Forms.Platform.Android/NativeViewWrapperRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/NativeViewWrapperRenderer.cs
@@ -1,3 +1,5 @@
+using Xamarin.Forms.Internals;
+
namespace Xamarin.Forms.Platform.Android
{
public class NativeViewWrapperRenderer : ViewRenderer<NativeViewWrapper, global::Android.Views.View>
@@ -22,7 +24,7 @@ namespace Xamarin.Forms.Platform.Android
if (e.OldElement == null)
{
SetNativeControl(Element.NativeView);
- Control.LayoutChange += (sender, args) => Element?.InvalidateMeasure(InvalidationTrigger.MeasureChanged);
+ Control.LayoutChange += (sender, args) => ((IVisualElementController)Element)?.InvalidateMeasure(InvalidationTrigger.MeasureChanged);
}
}