Rayo is a declarative, retained-mode UI library for .NET 10.
It is designed for building desktop and cross-platform UI with a code-first model, a retained visual tree, a styling system, and multiple rendering backends.
VisualElement propertiesRayo.Rendering.OpenGLRayo.Rendering.SkiaSharpRayo.Rendering.VulkanThe repository currently publishes these NuGet packages together:
RayoRayo.FluentApiGeneratorRayo.Hosting.AbstractionsRayo.Hosting.AndroidRayo.Hosting.DesktopRayo.RenderingRayo.Rendering.OpenGLRayo.Rendering.SkiaSharpRayo.Rendering.VulkanAll packages in the release set are versioned together from the same Git tag.
using Rayo.Controls;
using Rayo.Layout;
var page =
new VStack()
.Spacing(12)
.Padding(24)
.Children(
new Label()
.Text("Hello from Rayo")
.FontSize(24),
new Button()
.Text("Click Me")
.Height(40)
);
Restore and build the main library with the repository NuGet configuration:
dotnet restore Rayo/Rayo.csproj --configfile NuGet.Config
dotnet build Rayo/Rayo.csproj --no-restore
The solution file references missing projects in this environment, so direct project builds are the supported path.
The repository includes sample applications such as:
GalleryFluentExamplesStyleDemoOpenGLViewVulkanViewCrossPlatformAppRayo is distributed under the MIT License.
See LICENSE for the full text.