AlohaKit.UI
This library offers an easier way to create drawn controls in .NET MAUI in both XAML and C#.
Install / Use
/learn @jsuarezruiz/AlohaKit.UIREADME
AlohaKit UI
<div align="center"> <a href="https://www.nuget.org/packages/AlohaKit.UI"><img src="https://img.shields.io/nuget/v/AlohaKit.UI?color=blue&style=flat-square&logo=nuget"></a> <a href="https://www.nuget.org/packages/AlohaKit.UI"><img src="https://img.shields.io/nuget/dt/AlohaKit.UI.svg?style=flat-square"></a> <a href="./LICENSE"><img src="https://img.shields.io/github/license/jsuarezruiz/AlohaKit.UI?style=flat-square"></a> </div>This library offers an easier way to create drawn controls in .NET MAUI in both XAML and C#.
It includes a new CanvasView control that allows content such as drawn Layouts or Views so that it creates a single native view that creates the native Canvas but the rest of the child elements become fully drawn and managed by the Canvas.
XAML
<alohakit:CanvasView>
<alohakit:Rectangle
WidthRequest="50" HeightRequest="50"
X="30" Y="30"
ScaleX="0.5" ScaleY="0.5"
Fill="Green" />
<alohakit:RoundRectangle
WidthRequest="50" HeightRequest="50"
X="120" Y="10"
CornerRadius="12, 0, 0, 24"
Fill="Orange" />
<alohakit:Ellipse
WidthRequest="50" HeightRequest="50"
X="130" Y="70">
<alohakit:Ellipse.Fill>
<LinearGradientBrush StartPoint="0, 0" EndPoint="1, 0">
<LinearGradientBrush.GradientStops>
<GradientStop Color="Red" />
<GradientStop Color="Yellow" Offset="1" />
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</alohakit:Ellipse.Fill>
</alohakit:Ellipse>
</alohakit:CanvasView>
C#
CanvasView()
.Children({
Rectangle()
.X(10).Y(10)
.Height(80).Width(80)
.Fill(Colors.Red),
Ellipse()
.X(10).Y(100)
.Height(80).Width(80)
.Fill(Colors.Orange),
Label()
.X(10).Y(200)
.Height(20).Width(100)
.Text("Label"),
});
This way, instead of needing to use the .NET MAUI Graphics Canvas extension methods, you use XAML or C# in a similar way to how you would normally create UI in .NET MAUI.
What if it could be even simpler?
You also have the From Figma to AlohaKit UI tool available.

Turns your Figma design into AlohaKit UI code.
Contribute
Do you want to contribute?.
Found a Bug?
If you find a bug, you can help me by submitting an issue. Even better, you can submit a Pull Request with a fix.
Copyright and license
Code released under the MIT license.
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
