diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Android/NativeViewWrapper.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Android/NativeViewWrapper.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/NativeViewWrapper.cs b/Xamarin.Forms.Platform.Android/NativeViewWrapper.cs new file mode 100644 index 00000000..eecef9bc --- /dev/null +++ b/Xamarin.Forms.Platform.Android/NativeViewWrapper.cs @@ -0,0 +1,22 @@ +namespace Xamarin.Forms.Platform.Android +{ + public class NativeViewWrapper : View + { + public NativeViewWrapper(global::Android.Views.View nativeView, GetDesiredSizeDelegate getDesiredSizeDelegate = null, OnLayoutDelegate onLayoutDelegate = null, + OnMeasureDelegate onMeasureDelegate = null) + { + GetDesiredSizeDelegate = getDesiredSizeDelegate; + NativeView = nativeView; + OnLayoutDelegate = onLayoutDelegate; + OnMeasureDelegate = onMeasureDelegate; + } + + public GetDesiredSizeDelegate GetDesiredSizeDelegate { get; } + + public global::Android.Views.View NativeView { get; } + + public OnLayoutDelegate OnLayoutDelegate { get; } + + public OnMeasureDelegate OnMeasureDelegate { get; } + } +}
\ No newline at end of file |