Microsoft.Maui.Graphics icon indicating copy to clipboard operation
Microsoft.Maui.Graphics copied to clipboard

IDrawable Draw does not fire without height and width assigned to GraphicsView

Open nichojo89 opened this issue 4 years ago • 0 comments

Hello,

The Draw method is not be called unless HeightRequest & WidthRequest are assigned to the GraphicsView.

Replication Procedure: Toggle removing HeightRequest & WidthRequest attributes in a new .NET Maui app in a WIndows Machine and observe Draw is only called with these lengths assigned.

<GraphicsView WidthRequest="400" HeightRequest="300" Drawable="{StaticResource Drawable}"/>

Visual Studio 2022 for Windows (17.1 Preview 2)

nichojo89 avatar Jan 08 '22 16:01 nichojo89