You can see : Draw graphical objects
Maui.Net Graphics
Yusuf
791
Reputation points
Hi
I want to move from Xamarin and Skai Sharp to Maui.Net.
How to start with graphics in Maui.Net
I tried to create simple graphics app but I dont know how to start.
This is XAML code
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="PatternApp.MainPage">
<StackLayout>
<GraphicsView x:Name="graphicsview" WidthRequest="300" HeightRequest="300" />
</StackLayout>
</ContentPage>
What should I write in the cs file to draw a blue box ?
canvas.FillRectangle(50, 50, 200, 200);
Thanks in advance