org.rgot.RadialGauge
1.0.4
dotnet add package org.rgot.RadialGauge --version 1.0.4
NuGet\Install-Package org.rgot.RadialGauge -Version 1.0.4
<PackageReference Include="org.rgot.RadialGauge" Version="1.0.4" />
paket add org.rgot.RadialGauge --version 1.0.4
#r "nuget: org.rgot.RadialGauge, 1.0.4"
// Install org.rgot.RadialGauge as a Cake Addin #addin nuget:?package=org.rgot.RadialGauge&version=1.0.4 // Install org.rgot.RadialGauge as a Cake Tool #tool nuget:?package=org.rgot.RadialGauge&version=1.0.4
Xamarin-Forms-RadialGauge
Radial Gauge Indicator in Xamarin Forms based on ItamarD.Xamarin.Forms.RadialProgress's component, NuGet package.
Xamarin-Forms-RadialGauge
Radial Gauge Indicator in Xamarin Forms based on ItamarD.Xamarin.Forms.RadialProgress's component, NuGet package.
KPS'S Presentation Link KPS'S Original Repo
Installation
Just add the NuGet package and you're good to go!
dotnet add package org.rgot.RadialGauge
Example
- Create a Xamarin Forms solution.
- Update Nuget Packages for entire solution. (Xamarin Forms > 5.0).
- For Android project target framework 11.
MainPage.xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:radial="clr-namespace:RadialGauge;assembly=RadialGauge"
x:Class="test_radialGauge.MainPage">
<StackLayout>
<Frame BackgroundColor="#2196F3" Padding="24" CornerRadius="0">
<Label Text="Test Gauge" HorizontalTextAlignment="Center" TextColor="White" FontSize="36"/>
</Frame>
<radial:Gauge x:Name="jauge"
HorizontalOptions="CenterAndExpand"
WidthRequest="150"
HeightRequest="150"
MinValue="-20"
MaxValue="50"
CurrentValue="25"
UnitOfMeasurement="�C"
BottomText="Sensor"
HasAnimation="False"
/>
<Slider Minimum="-20" Maximum="50" x:Name="slider" ValueChanged="slider_ValueChanged"/>
</StackLayout>
</ContentPage>
MainPage.xaml.cs
using Xamarin.Forms;
namespace test_radialGauge
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
jauge.FromColor = Color.Cyan;
jauge.ToColor = Color.Orange;
jauge.ViaColor = Color.GreenYellow;
}
private void slider_ValueChanged(object sender, ValueChangedEventArgs e)
{
jauge.CurrentValue = (int)slider.Value;
}
}
}
Usage
This is a Xamarin.Forms component, and is compatible with both iOS and Android.
XAML Add the namespace
xmlns:radial="clr-namespace:RadialGauge;assembly=RadialGauge"
then you can use the radial:gauge
component!
Bindable Properties
CurrentValue
: Value of the gaugeMaxValue
: Maximum value of the gaugeMinValue
: Minimum value of the gaugeHasAnimation
: Whentrue
, displays an animation onCurrentValue
changeBackgroundColor
FromColor
Defaults to Color.Red
ToColor
Defaults to Color.Green
ViaColor
Defaults to Color.Golden
EmptyFillColor
Color of the empty part of the gauge, Defaults to Color.FromHex("#e0dfdf")
.
TextColor
Defaults to Color.FromHex("#676a69")
UnitOfMeasurement
Text to display below the number, defaults to ""
BottomText
Text to display below the unit, defaults to ""
TextFont
Defaults toArial
License
Licensed under FreeBSD.
As with any open source project if you see improvements feel free to add your PR's
KPS'S Presentation Link KPS'S Original Repo
Installation
Just add the NuGet package and you're good to go!
dotnet add package org.rgot.RadialGauge
Example
- Create a Xamarin Forms solution.
- Update Nuget Packages for entire solution. (Xamarin Forms > 5.0).
- For Android project target framework 11.
MainPage.xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:radial="clr-namespace:RadialGauge;assembly=RadialGauge"
x:Class="test_radialGauge.MainPage">
<StackLayout>
<Frame BackgroundColor="#2196F3" Padding="24" CornerRadius="0">
<Label Text="Test Gauge" HorizontalTextAlignment="Center" TextColor="White" FontSize="36"/>
</Frame>
<radial:Gauge x:Name="jauge"
HorizontalOptions="CenterAndExpand"
WidthRequest="150"
HeightRequest="150"
MinValue="-20"
MaxValue="50"
CurrentValue="25"
UnitOfMeasurement="�C"
BottomText="Sensor"
HasAnimation="False"
/>
<Slider Minimum="-20" Maximum="50" x:Name="slider" ValueChanged="slider_ValueChanged"/>
</StackLayout>
</ContentPage>
MainPage.xaml.cs
using Xamarin.Forms;
namespace test_radialGauge
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
jauge.FromColor = Color.Cyan;
jauge.ToColor = Color.Orange;
jauge.ViaColor = Color.GreenYellow;
}
private void slider_ValueChanged(object sender, ValueChangedEventArgs e)
{
jauge.CurrentValue = (int)slider.Value;
}
}
}
Usage
This is a Xamarin.Forms component, and is compatible with both iOS and Android.
XAML Add the namespace
xmlns:radial="clr-namespace:RadialGauge;assembly=RadialGauge"
then you can use the radial:gauge
component!
Bindable Properties
CurrentValue
: Value of the gaugeMaxValue
: Maximum value of the gaugeMinValue
: Minimum value of the gaugeHasAnimation
: Whentrue
, displays an animation onCurrentValue
changeBackgroundColor
FromColor
Defaults to Color.Red
ToColor
Defaults to Color.Green
ViaColor
Defaults to Color.Golden
EmptyFillColor
Color of the empty part of the gauge, Defaults to Color.FromHex("#e0dfdf")
.
TextColor
Defaults to Color.FromHex("#676a69")
UnitOfMeasurement
Text to display below the number, defaults to ""
BottomText
Text to display below the unit, defaults to ""
TextFont
Defaults toArial
License
Licensed under FreeBSD.
As with any open source project if you see improvements feel free to add your PR's
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- SkiaSharp.Views.Forms (>= 2.80.2)
- Xamarin.Essentials (>= 1.6.1)
- Xamarin.Forms (>= 5.0.0.2012)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.