Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Here's a snippet of the page using SF data form.
<local:ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" Visual="Material"
xmlns:dataForm="clr-namespace:Syncfusion.XForms.DataForm;assembly=Syncfusion.SfDataForm.XForms">
<ContentPage.Content>
<Grid >
<dataForm:SfDataForm Grid.Row="0" Margin="5, 15, 5, 8" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" x:Name="dataForm" ValidationMode="LostFocus" LabelPosition="Left" DataObject="{Binding LoginPageViewModel}" />
</Grid>
</ContentPage.Content>
When visual=material is set on the page, the controls are rendered incorrectly (see image)
On Android, it crashes with the following exception.
===============================================
==================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at Java.Interop.NativeMethods:java_interop_jnienv_call_nonvirtual_void_method_a <0x00007>
at InstanceMethods:CallNonvirtualVoidMethod <0x0031b>
at JniInstanceMethods:InvokeNonvirtualVoidMethod <0x0016b>
at Android.Views.View:Measure <0x001df>
at Syncfusion.Android.DataForm.ScrollViewer:MeasureChildWithMargins <0x00183>
at Android.Views.ViewGroup:n_MeasureChildWithMargins_Landroid_view_View_IIII <0x00113>
at Android.Runtime.DynamicMethodNameCounter:189 <0x00047>
at Android.Runtime.DynamicMethodNameCounter:189 <0x000ef>
at <unknown> <0xffffffff>
at Java.Interop.NativeMethods:java_interop_jnienv_call_nonvirtual_void_method_a <0x00007>
at InstanceMethods:CallNonvirtualVoidMethod <0x0031b>
at JniInstanceMethods:InvokeNonvirtualVoidMethod <0x0016b>
at Android.Views.View:Measure <0x001df>
at Xamarin.Forms.Platform.Android.ViewRenderer`2:OnLay
out <0x001af>
at Syncfusion.XForms.Android.DataForm.SfDataFormViewRenderer:OnLayout <0x000cf>
at Xamarin.Forms.Platform.Android.FormsViewGroup:n_OnLayout_ZIIII <0x000bf>
at Android.Runtime.DynamicMethodNameCounter:79 <0x00047>
at Android.Runtime.DynamicMethodNameCounter:79 <0x0010b>
at <unknown> <0xffffffff>
at Java.Interop.NativeMethods:java_interop_jnienv_call_nonvirtual_void_method_a <0x00007>
at InstanceMethods:CallNonvirtualVoidMethod <0x0031b>
at JniInstanceMethods:InvokeVirtualVoidMethod <0x00353>
at Xamarin.Forms.Platform.Android.FormsViewGroup:MeasureAndLayout <0x0036f>
at Xamarin.Forms.Platform.Android.VisualElementTracker:UpdateLayout <0x007af>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:UpdateLayout <0x000db>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:UpdateLayout <0x0027b>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:OnLayout <0x000fb>
at Xamarin.Forms.Platform.Android.FormsViewGroup:n_OnLayout_ZIIII <0x000bf>
at Android.Runtime.DynamicMethodNameCounter:79 <0x00047>
at Android.Runtime.DynamicMethodNameCounter:79 <0x0010b>
at <unknown> <0xffffffff>
at Java.Interop.NativeMethods:java_interop_jnienv_call_nonvirtual_void_method_a <0x00007>
at InstanceMethods:CallNonvirtualVoidMethod <0x0031b>
at JniInstanceMethods:InvokeVirtualVoidMethod <0x00353>
at Xamarin.Forms.Platform.Android.FormsViewGroup:MeasureAndLayout <0x0036f>
at Xamarin.Forms.Platform.Android.VisualElementTracker:UpdateLayout <0x007af>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:UpdateLayout <0x000db>
at Xamarin.Forms.Platform.Android.ScrollViewContainer:OnLayout <0x000e7>
at Android.Views.ViewGroup:n_OnLayout_ZIIII <0x000d7>
at Android.Runtime.DynamicMethodNameCounter:83 <0x00047>
at Android.Runtime.DynamicMethodNameCounter:83 <0x0010b>
at <unknown> <0xffffffff>
at Java.Interop.NativeMethods:java_interop_jnienv_call_nonvirtual_void_method_a <0x00007>
at InstanceMethods:CallNonvirtualVoidMethod <0x
0031b>
at JniInstanceMethods:InvokeVirtualVoidMethod <0x00353>
at Android.Widget.FrameLayout:OnLayout <0x0030b>
at Xamarin.Forms.Platform.Android.ScrollViewRenderer:OnLayout <0x0018b>
at Android.Widget.FrameLayout:n_OnLayout_ZIIII <0x000d7>
at Android.Runtime.DynamicMethodNameCounter:179 <0x00047>
at Android.Runtime.DynamicMethodNameCounter:179 <0x0010b>
at <unknown> <0xffffffff>
at Java.Interop.NativeMethods:java_interop_jnienv_call_nonvirtual_void_method_a <0x00007>
at InstanceMethods:CallNonvirtualVoidMethod <0x0031b>
at JniInstanceMethods:InvokeNonvirtualVoidMethod <0x0016b>
at Android.Views.ViewGroup:Layout <0x002a7>
at Xamarin.Forms.Platform.Android.VisualElementTracker:UpdateLayout <0x00643>
at Xamarin.Forms.Platform.Android.ScrollViewRenderer:UpdateLayout <0x0009f>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:UpdateLayout <0x0027b>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:OnLayout <0x000fb>
at Xamarin.Forms.Platform.Android.
FormsViewGroup:n_OnLayout_ZIIII <0x000bf>
at Android.Runtime.DynamicMethodNameCounter:79 <0x00047>
at Android.Runtime.DynamicMethodNameCounter:79 <0x0010b>
at <unknown> <0xffffffff>
at Java.Interop.NativeMethods:java_interop_jnienv_call_nonvirtual_void_method_a <0x00007>
at InstanceMethods:CallNonvirtualVoidMethod <0x0031b>
at JniInstanceMethods:InvokeVirtualVoidMethod <0x00353>
at Xamarin.Forms.Platform.Android.FormsViewGroup:MeasureAndLayout <0x0036f>
at Xamarin.Forms.Platform.Android.VisualElementTracker:UpdateLayout <0x007af>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:UpdateLayout <0x000db>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:UpdateLayout <0x0027b>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:OnLayout <0x000fb>
at Xamarin.Forms.Platform.Android.PageRenderer:OnLayout <0x0007f>
at Xamarin.Forms.Platform.Android.FormsViewGroup:n_OnLayout_ZIIII <0x000bf>
at Android.Runtime.DynamicMethodNameCounter:79 <0x00047>
at An
droid.Runtime.DynamicMethodNameCounter:79 <0x0010b>
at <unknown> <0xffffffff>
at Java.Interop.NativeMethods:java_interop_jnienv_call_nonvirtual_void_method_a <0x00007>
at InstanceMethods:CallNonvirtualVoidMethod <0x0031b>
at JniInstanceMethods:InvokeVirtualVoidMethod <0x00353>
at Xamarin.Forms.Platform.Android.FormsViewGroup:MeasureAndLayout <0x0036f>
at Xamarin.Forms.Platform.Android.VisualElementTracker:UpdateLayout <0x007af>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:UpdateLayout <0x000db>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:UpdateLayout <0x0027b>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:OnLayout <0x000fb>
at Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer:OnLayout <0x000f7>
at Xamarin.Forms.Platform.Android.FormsViewGroup:n_OnLayout_ZIIII <0x000bf>
at Android.Runtime.DynamicMethodNameCounter:79 <0x00047>
at Android.Runtime.DynamicMethodNameCounter:79 <0x0010b>
at <unknown> <0xffffffff>
at Jav
a.Interop.NativeMethods:java_interop_jnienv_call_nonvirtual_void_method_a <0x00007>
at InstanceMethods:CallNonvirtualVoidMethod <0x0031b>
at JniInstanceMethods:InvokeVirtualVoidMethod <0x00353>
at Xamarin.Forms.Platform.Android.FormsViewGroup:MeasureAndLayout <0x0036f>
at Xamarin.Forms.Platform.Android.VisualElementTracker:UpdateLayout <0x007af>
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1:UpdateLayout <0x000db>
at Xamarin.Forms.Platform.Android.AppCompat.Platform:Xamarin.Forms.Platform.Android.IPlatformLayout.OnLayout <0x0016b>
at Xamarin.Forms.Platform.Android.PlatformRenderer:OnLayout <0x0010f>
at Android.Views.ViewGroup:n_OnLayout_ZIIII <0x000d7>
at Android.Runtime.DynamicMethodNameCounter:83 <0x00047>
at Android.Runtime.DynamicMethodNameCounter:83 <0x0010b>
========