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                
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="org.rgot.RadialGauge" Version="1.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add org.rgot.RadialGauge --version 1.0.4                
#r "nuget: org.rgot.RadialGauge, 1.0.4"                
#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 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.

Banner

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 gauge

  • MaxValue : Maximum value of the gauge

  • MinValue : Minimum value of the gauge

  • HasAnimation : When true, displays an animation on CurrentValue change

  • BackgroundColor

  • 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 to Arial

License

Licensed under FreeBSD.

As with any open source project if you see improvements feel free to add your PR's Banner

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 gauge

  • MaxValue : Maximum value of the gauge

  • MinValue : Minimum value of the gauge

  • HasAnimation : When true, displays an animation on CurrentValue change

  • BackgroundColor

  • 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 to Arial

License

Licensed under FreeBSD.

As with any open source project if you see improvements feel free to add your PR's

Product 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. 
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.