summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS/NativeViewWrapper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/NativeViewWrapper.cs')
-rw-r--r--Xamarin.Forms.Platform.iOS/NativeViewWrapper.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/NativeViewWrapper.cs b/Xamarin.Forms.Platform.iOS/NativeViewWrapper.cs
index 209aca80..5474c65b 100644
--- a/Xamarin.Forms.Platform.iOS/NativeViewWrapper.cs
+++ b/Xamarin.Forms.Platform.iOS/NativeViewWrapper.cs
@@ -22,6 +22,8 @@ namespace Xamarin.Forms.Platform.iOS
SizeThatFitsDelegate = sizeThatFitsDelegate;
LayoutSubViews = layoutSubViews;
NativeView = nativeView;
+
+ nativeView.TransferbindablePropertiesToWrapper(this);
}
public GetDesiredSizeDelegate GetDesiredSizeDelegate { get; }
@@ -31,5 +33,11 @@ namespace Xamarin.Forms.Platform.iOS
public UIView NativeView { get; }
public SizeThatFitsDelegate SizeThatFitsDelegate { get; set; }
+
+ protected override void OnBindingContextChanged()
+ {
+ NativeView.SetBindingContext(BindingContext, nv => nv.Subviews);
+ base.OnBindingContextChanged();
+ }
}
} \ No newline at end of file