summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT/NativeViewWrapper.cs
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-09-08 20:39:05 +0200
committerJason Smith <jason.smith@xamarin.com>2016-09-08 11:39:05 -0700
commit85426c5d9495eb1d55b3128bf97e50c68a73b53f (patch)
tree2f81e5868ce61eb90d15c6c51a354603b8395627 /Xamarin.Forms.Platform.WinRT/NativeViewWrapper.cs
parent11326e1c182b3ff5c3d82c6ef7d09c193bc19891 (diff)
downloadxamarin-forms-85426c5d9495eb1d55b3128bf97e50c68a73b53f.tar.gz
xamarin-forms-85426c5d9495eb1d55b3128bf97e50c68a73b53f.tar.bz2
xamarin-forms-85426c5d9495eb1d55b3128bf97e50c68a73b53f.zip
Native Bindings (#278)
* [C, I, A, W] Support Native Bindings * fix tabs
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT/NativeViewWrapper.cs')
-rw-r--r--Xamarin.Forms.Platform.WinRT/NativeViewWrapper.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/NativeViewWrapper.cs b/Xamarin.Forms.Platform.WinRT/NativeViewWrapper.cs
index 824f0eed..22cca62e 100644
--- a/Xamarin.Forms.Platform.WinRT/NativeViewWrapper.cs
+++ b/Xamarin.Forms.Platform.WinRT/NativeViewWrapper.cs
@@ -1,4 +1,5 @@
using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
#if WINDOWS_UWP
@@ -17,6 +18,7 @@ namespace Xamarin.Forms.Platform.WinRT
ArrangeOverrideDelegate = arrangeOverrideDelegate;
MeasureOverrideDelegate = measureOverrideDelegate;
NativeElement = nativeElement;
+ nativeElement.TransferbindablePropertiesToWrapper(this);
}
public ArrangeOverrideDelegate ArrangeOverrideDelegate { get; set; }
@@ -26,5 +28,11 @@ namespace Xamarin.Forms.Platform.WinRT
public MeasureOverrideDelegate MeasureOverrideDelegate { get; set; }
public FrameworkElement NativeElement { get; }
+
+ protected override void OnBindingContextChanged()
+ {
+ NativeElement.SetBindingContext(BindingContext, nv => nv.GetChildren<FrameworkElement>());
+ base.OnBindingContextChanged();
+ }
}
} \ No newline at end of file