summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8/NativeViewWrapper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/NativeViewWrapper.cs')
-rw-r--r--Xamarin.Forms.Platform.WP8/NativeViewWrapper.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WP8/NativeViewWrapper.cs b/Xamarin.Forms.Platform.WP8/NativeViewWrapper.cs
new file mode 100644
index 00000000..a28d0c9a
--- /dev/null
+++ b/Xamarin.Forms.Platform.WP8/NativeViewWrapper.cs
@@ -0,0 +1,24 @@
+´╗┐using System.Windows;
+
+namespace Xamarin.Forms.Platform.WinPhone
+{
+ public class NativeViewWrapper : View
+ {
+ public NativeViewWrapper(FrameworkElement nativeElement, GetDesiredSizeDelegate getDesiredSizeDelegate = null, ArrangeOverrideDelegate arrangeOverrideDelegate = null,
+ MeasureOverrideDelegate measureOverrideDelegate = null)
+ {
+ GetDesiredSizeDelegate = getDesiredSizeDelegate;
+ ArrangeOverrideDelegate = arrangeOverrideDelegate;
+ MeasureOverrideDelegate = measureOverrideDelegate;
+ NativeElement = nativeElement;
+ }
+
+ public ArrangeOverrideDelegate ArrangeOverrideDelegate { get; set; }
+
+ public GetDesiredSizeDelegate GetDesiredSizeDelegate { get; }
+
+ public MeasureOverrideDelegate MeasureOverrideDelegate { get; set; }
+
+ public FrameworkElement NativeElement { get; }
+ }
+} \ No newline at end of file