Working with the GraphicsView
This article shows how to use the GraphicsView control in MauiReactor
class GraphicsViewPage : Component
{
public override VisualNode Render()
{
return new ContentPage("GraphicsView Sample")
{
new GraphicsView()
.OnDraw(OnDraw)
};
}
private void OnDraw(ICanvas canvas, RectF dirtyRect)
{
canvas.FontColor = Colors.Red;
canvas.FontSize = 24;
canvas.DrawString("GraphicsView", dirtyRect, HorizontalAlignment.Center, VerticalAlignment.Center);
}
}

Last updated