Sharp.UI 0.3.0-alpha.5

This is a prerelease version of Sharp.UI.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Sharp.UI --version 0.3.0-alpha.5
                    
NuGet\Install-Package Sharp.UI -Version 0.3.0-alpha.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sharp.UI" Version="0.3.0-alpha.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sharp.UI" Version="0.3.0-alpha.5" />
                    
Directory.Packages.props
<PackageReference Include="Sharp.UI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sharp.UI --version 0.3.0-alpha.5
                    
#r "nuget: Sharp.UI, 0.3.0-alpha.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sharp.UI@0.3.0-alpha.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sharp.UI&version=0.3.0-alpha.5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Sharp.UI&version=0.3.0-alpha.5&prerelease
                    
Install as a Cake Tool

Overview

Wrapper Library for .NET MAUI: Code-Only UI dev with Fluent Methods, Hot Reload and No XAML

Hello, World!

namespace ExampleApp;
using Sharp.UI;

public class HelloWorldPage : ContentPage
{
    int count = 0;

    public HelloWorldPage()
    {
        Content = new VStack
        {
            new Image("dotnet_bot.png")
                .HeightRequest(200)
                .HorizontalOptions(LayoutOptions.Center),

            new Label("Hello, World!")
                .FontSize(32)
                .HorizontalOptions(LayoutOptions.Center),

            new Label("Welcome to .NET Multi-platform App UI")
                .FontSize(18)
                .HorizontalOptions(LayoutOptions.Center),

            new Button("Click me")
                .HorizontalOptions(LayoutOptions.Center)
                .OnClicked(button =>
                {
                    count++;
                    button.Text = $"Clicked {count} ";
                    button.Text += count == 1 ? "time" : "times";
                })
        }
        .Spacing(25)
        .Padding(new Thickness(30, 0))
        .VerticalOptions(LayoutOptions.Center);
    }
}

Before you start

If you want to use this library, you have to include the using Sharp.UI inside your app namespace, which replaces the standard MAUI classes.

namespace ExampleApp;
using Sharp.UI;
namespace ExampleApp
{
    using Sharp.UI;
    ...
}

License

MIT License, Copyright 2022 Pawel Krzywdzinski

Product Compatible and additional computed target framework versions.
.NET net7.0-android33.0 is compatible.  net7.0-ios16.1 is compatible.  net7.0-maccatalyst16.1 is compatible.  net7.0-windows10.0.19041 is compatible.  net8.0-android was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-windows was computed.  net9.0-android was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-windows was computed.  net10.0-android was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.90-beta.1 65 7/24/2026
10.0.1-beta.1 52 7/22/2026
10.0.0-beta.5 51 7/21/2026
10.0.0-beta.4 55 7/15/2026
10.0.0-beta.3 50 7/14/2026
10.0.0-beta.2 55 7/14/2026
10.0.0-beta.1 60 7/13/2026
8.0.0-beta.1 217 2/13/2024
0.7.0-alpha 153 1/5/2024
0.4.6-alpha 292 3/6/2023
0.4.5-alpha 216 3/2/2023
0.4.4-alpha 197 2/27/2023
0.4.3-alpha 202 2/25/2023
0.4.2-alpha 193 2/22/2023
0.4.1-alpha 202 2/21/2023
0.4.0-alpha 198 2/20/2023
0.3.1-alpha.2 211 2/17/2023
0.3.1-alpha.1 191 2/16/2023
0.3.0-alpha.5 191 2/15/2023
Loading failed