I'm not 100% sure this is a problem with SfDigitalGauge. I have a cross-platform PCL app and the problem is occurring when I run the UWP version. I have a page with several SfDigitalGauges and also an SfDataGrid and some simple labels. I'm arranging contents with stacklayouts and grids.
The first time into the page everything is ok, but if I navigate to another page (I have 5 tabbed pages of which this one is 2nd in order) and come back into it, I get the following error.
{System.NullReferenceException: Object reference not set to an instance of an object.
at Xamarin.Forms.Platform.UWP.ImageRenderer.UpdateAspect()
at Xamarin.Forms.Platform.UWP.ImageRenderer.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()}
I know it's vague at this stage but I was wondering if this gave any immediate clues.
My UWP app MainPage constructor looks like this:
public MainPage()
{
SfDataGridRenderer.Init();
SfListViewRenderer.Init();
this.InitializeComponent();
LoadApplication(new App1.App());
}
The Android version runs fine in an emulator. I'm running the UWP version on the local machine as the simulator gives me BSOD's.
Please let me know what more info I can provide. Thanks.
edit: ok I managed to get a run on the Simulator, with the same result.
edit 2: Just realized it's in a Xamarin.Forms DLL but anyway I'll leave this here and also post something on the Xamarin forum.