Grid TestGrid = new Grid();
TestGrid.Background = new SolidColorBrush(Colors.AliceBlue);
TestGrid.Height = 500;
TestGrid.Width = 500;
await bitmapRender.RenderAsync(TestGrid, 500, 500);
This code in its last statement gives me the following error:
System.ArgumentException
Value does not fall within the expected range.
What's wrong in this apparently simple code?
Edit: Futher details on the bug:
{System.ArgumentException: Value does not fall within the expected range. at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Picture_Slide.MainPage.d__0.MoveNext()}