SimpleRatingControl.MAUI
0.0.3
There is a newer version of this package available.
See the version list below for details.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Simple Rating Control for .NET MAUI
A Simple Rating Control for .NET MAUI using an icon font.
Screenshots
Android
Windows
Setup
Available on NuGet: SimpleRatingControl.MAUI
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
- Blog post explaining the process of creating the NuGet package: Medium
- Listed on nuget.org
- Listed on snppts.dev
Product | Versions 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.
-
net6.0
- M.BindableProperty.Generator (>= 0.9.0)
-
net6.0-android31.0
- M.BindableProperty.Generator (>= 0.9.0)
-
net6.0-ios15.4
- M.BindableProperty.Generator (>= 0.9.0)
- System.Runtime.InteropServices.NFloat.Internal (>= 6.0.1)
-
net6.0-maccatalyst15.4
- M.BindableProperty.Generator (>= 0.9.0)
- System.Runtime.InteropServices.NFloat.Internal (>= 6.0.1)
-
net6.0-windows10.0.19041
- M.BindableProperty.Generator (>= 0.9.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Use M.BindableProperty.Generator NuGet package to simplify the code. Set HorizontalOptions and VerticalOptions to Center.