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

[Windows] Line isn't getting drawn

Open rachelkang opened this issue 3 years ago • 2 comments

Line is not getting drawn on Windows.

On Windows, the following code does not render anything, whereas it renders properly as a diagonal red line on Android:

new Line { Stroke=Colors.Red, StrokeThickness=2, X1=0, X2=100, Y1=0, Y2=20 }

not tested on iOS

rachelkang avatar Apr 07 '22 13:04 rachelkang

Could you test it again setting HeightRequest and WidthRequest?. I think could be the same as https://github.com/dotnet/maui/issues/4044

jsuarezruiz avatar Apr 07 '22 14:04 jsuarezruiz

yep, it's the same issue - it works with HeightRequest and WidthRequest

rachelkang avatar Apr 07 '22 18:04 rachelkang