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

Add RectPainter sample #78

Closed david-c14 closed 4 months ago

david-c14 commented 5 months ago

What does the pull request do?

Adds a new sample. A simple graphics editing tool as a demonstration of live interaction between mouse, offscreen image, and rendering

Scope of this PR:

Checklist

If this is a new Sample

In any case

Fixed issues

david-c14 commented 5 months ago

@dotnet-policy-service agree

david-c14 commented 5 months ago

I need to implement a graphics editing tool in AvaloniaUI, and came looking for a sample to get me started. But I couldn't see anything particularly close. So I built a simple test example to try out what I was doing, and having got it to work, I thought I should submit it back as a sample to fill the gap.

maxkatz6 commented 5 months ago

Thank you! Sample like this is what I wanted to add for a while now. I am going to review on this week.