Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Does UWP project in Xamarin.Forms check the size of itself Automaticly?

magnetismmagnetism NZUniversity ✭✭

I am adding an UWP project into my Xamarin.Forms solution. There is a exception:
UnhandledException += (sender, e) =>
if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();


The message is
"Message = "System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.\r\n at Windows.UI.Xaml.UIElement.Measure(Size availableSize)\r\n at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.MeasureOverride(Size availableSize)

When I change the "Grid.RowSpan" of some controls, the exception just gone.

By the way, there is no exception when the app runs in local Machine, it just occurs in Windows Mobile.

Is this something about size?

Sign In or Register to comment.