SimpleRatingControl.MAUI 0.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package SimpleRatingControl.MAUI --version 0.0.3                
NuGet\Install-Package SimpleRatingControl.MAUI -Version 0.0.3                
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="SimpleRatingControl.MAUI" Version="0.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SimpleRatingControl.MAUI --version 0.0.3                
#r "nuget: SimpleRatingControl.MAUI, 0.0.3"                
#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.
// Install SimpleRatingControl.MAUI as a Cake Addin
#addin nuget:?package=SimpleRatingControl.MAUI&version=0.0.3

// Install SimpleRatingControl.MAUI as a Cake Tool
#tool nuget:?package=SimpleRatingControl.MAUI&version=0.0.3                

Simple Rating Control for .NET MAUI

A Simple Rating Control for .NET MAUI using an icon font.

Screenshots

Android

Android Screenshot

Windows

Windows Screenshot

Setup

Available on NuGet: SimpleRatingControl.MAUI

NuGet

Just add the package to your .NET MAUI application.

API Usage

Initialize the package by calling UseSimpleRatingControl() on MauiProgram:

var builder = MauiApp.CreateBuilder();

builder
	.UseMauiApp<App>()
	.UseSimpleRatingControl()

    // other configurations

return builder.Build();

You must add this namespace to your xaml files:

xmlns:controls="http://www.tsjdev-apps.de/maui/controls"

Now you can use the SimpleRatingControl from this namespace:

<controls:SimpleRatingControl Amount="5"
                              CurrentValue="1"
                              AccentColor="Black"
                              FontSize="36"
                              RatingType="Circle" />

Available Properties

Property Type Description Default Value
CurrentValue double Sets the value which should be used as the rating. 0
Amount double Sets the maximum amount 10
FontSize double Sets the size of each element. 24
AccentColor Color Sets the color of the element. Red
RatingType RatingType Sets the type of the icon which should be used. Star

Resources

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-android31.0 is compatible.  net6.0-ios was computed.  net6.0-ios15.4 is compatible.  net6.0-maccatalyst was computed.  net6.0-maccatalyst15.4 is compatible.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net6.0-windows10.0.19041 is compatible.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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
0.2.0 149 9/29/2024
0.1.0 505 9/13/2023
0.0.3 634 9/6/2022
0.0.2 457 8/4/2022
0.0.1 443 8/3/2022

Use M.BindableProperty.Generator NuGet package to simplify the code. Set HorizontalOptions and VerticalOptions to Center.