AvaloniaUI / Avalonia.Samples

Avalonia.Samples aims to provide some minimal samples focusing on a particular issue at a time. This should help getting new users started.
https://www.avaloniaui.net
606 stars 103 forks source link

Fix layout so PaintControl can better stretch across bounds #85

Closed stevemonaco closed 3 months ago

stevemonaco commented 3 months ago

What does the pull request do?

The PaintControl now paints across the entire window (besides the top and bottom areas with TextBlocks).

Scope of this PR: Change DockPanel to Grid.

I could not get the original approach to correctly work as there was always an extra TextBlock height of gap of undrawable area at the top.

What is the current behavior?

Left side of window doesn't allow painting, so it was broken at some point.