BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<guage:SfCircularGauge> <gauge.SfCircularGauge.Scales> <gauge.Scale StartValue="0" EndValue="100" Interval="10" StartAngle="135" SweepAngle="230" RimColor="#FFFB0101" RimThickness="10" /> </gauge.SfCircularGauge.Scales> </guage:SfCircularGauge>
Hi Ken Ross,
Thanks for your interest in Syncfusion Products.
1. Regarding Xamarin.Android Exception:
While checking the provided code snippet we have found that gauge has misspelled as “guage” and “.” is used Instead of “:”. We have modified the provided code snippet as follows.
Xaml: <gauge:SfCircularGauge.Scales> <gauge:Scale StartValue="0" EndValue="100" Interval="10" StartAngle="135" SweepAngle="230" RimColor="#FFFB0101" RimThickness="10" /> </gauge:SfCircularGauge.Scales> </gauge:SfCircularGauge> |
We have prepare a sample based on your provided information. Please find the sample below.
2. Regarding Xamarin.iOS Binding Context Issue:
We are unable to reproduce the binding context issue in Xamarin.iOS. We have prepared a sample for Gauge pointers dynamically update the pointer value in SfGauge control (Xamarin.iOS). Please find the sample below.
Sample Link: Xamarin.iOS_Binding.zip
If the provided Samples does not meet your requirement, could you please provide us more details about the issue and its replication procedure along with sample or screenshots (if possible)? It will be very helpful for us to analyse on it and provide you the possible solution.
Please let us know, if there is any queries.
Regards,
Nijamudeen M.
Hi @Helmut,
Sorry for the inconvenience Caused.
We have updated the Xamarin forms package to the mentioned Version 1.4.1.6349 in the attached sample. We have found that the issue occurred due to the behavior of VerticalOptions property of StackLayout in the specified Xamarin Forms version. Please refer the below code snippet to resolve that issue.
C# { VerticalOptions = LayoutOptions.FillAndExpand, Children = { new Gauge() } }; |
We have modified the provided sample and the sample can be downloaded from the below link.
Link: Gauge_iOS_Binding.zip
Please let us know, if you have any queries.
Regards,
Nijamudeen M.
Hi Ken,
Based on the implementation of CircularGauge in Xamarin, it renders in a squarified manner, so while set GaugeType as default, it will occupy the entire space. Therefore while set the StartAngle and SweepAngle of the Scale as 180 there will be an empty space at the bottom of the gauge, when set the GaugeType as "North" with the same StartAngle and SweepAngle the empty space will be shared in the top and bottom portion of the gauge.
In order to add string value in that empty space (anywhere inside the gauge), you can use the Headers support available in the CircularGauge. And also we have bind the slider value to Needle pointer value of SfCircularGauge using XAML for that please refer the below code snippet.
XAML <StackLayout VerticalOptions="FillAndExpand" Orientation="Vertical" > <gauge:SfCircularGauge x:Name="gauge1" VerticalOptions="FillAndExpand" GaugeType="North"> <gauge:SfCircularGauge.Scales> <gauge:Scale StartValue="0" EndValue="100" Interval="10" StartAngle="180" SweepAngle="180" RimColor="#FFFB0101" RimThickness="100" LabelColor="White" > <gauge:Scale.Pointers> <gauge:NeedlePointer x:Name="needle" Value="60" LengthFactor="0.8" Color="White" Thickness="5" KnobColor="White" KnobRadius="20" /> </gauge:Scale.Pointers> </gauge:Scale> </gauge:SfCircularGauge.Scales> </gauge:SfCircularGauge> <Slider x:Name="slider1" Grid.Column="1" Scale="0.7" BindingContext="{x:Reference Name=needle}" Maximum="100" Value="{Binding Value, Mode=TwoWay}" BackgroundColor="Purple" /> </StackLayout> |
If the provided Information does not meet your requirement, could you please provide us more details along with screenshots (if possible)? It will be very helpful for us to analyse on it and provide you the possible solution.
Note: Further Information have follow up with the corresponding incident.
Please let us know, if there is any queries.
Regards,
Nijamudeen M.