.Invoke(g => { scrollingGrid = g; }) , where scrollingGrid is a field on the page, gives:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Expression of type 'System.Func2[Xamarin.Forms.Grid,Xamarin.Forms.Grid]' cannot be used for parameter of type 'System.Action1[Xamarin.Forms.Grid]' of method 'Xamarin.Forms.Grid InvokeGrid'
Parameter name: arg1
.Invoke(g => { scrollingGrid = g; })
, wherescrollingGrid
is a field on the page, gives:System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Expression of type 'System.Func2[Xamarin.Forms.Grid,Xamarin.Forms.Grid]' cannot be used for parameter of type 'System.Action1[Xamarin.Forms.Grid]' of method 'Xamarin.Forms.Grid InvokeGrid' Parameter name: arg1