We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

No Binding possible to Scale.EndValue

Hi,
I can't set binding property on Scale.Endvalue. See screenshot of VS2013 intellisense



Thanks
Helmut

3 Replies

NM Nijamudeen Mohamed Sulaiman Syncfusion Team May 5, 2015 07:12 AM UTC

Hi Helmut,

Thanks for your interest in Syncfusion products.


Based on the provided information and we have found that the intellisense of Xamarin get conflicted by Scale Property of VisualElement with the Scale property of SfCircularGauge. It can be resolved prepending namespace of SfCircularGauge. Please refer the following code snippet.

Code Snippet:

C#:
scale.SetBinding(Syncfusion.SfGauge.XForms.Scale.EndValueProperty, new Binding("RimThickness") { Source = scale });


Please let us know if you have any queries.

Regards,
Nijamudeen M.



HL Helmut Lubik May 5, 2015 05:06 PM UTC

Hi,

I don't understand your Snippet

Code Snippet:

C#:
scale.SetBinding(Syncfusion.SfGauge.XForms.Scale.EndValueProperty, new Binding("RimThickness") { Source = scale });


1. new Binding("RimThickness") ?? I want Binding to EndValueProperty
2. Source = scale  ?? Why this and not to my BindingContext ?

With your Binding sample, EndValue = RimThikness.Value

If i change "RimThickness" wit my Bindingproperty (e.g. "EffectivePowerMax") scale.EndValue is allways 100. And if I change Source to my BindingContect will crash the App.

Helmut


NM Nijamudeen Mohamed Sulaiman Syncfusion Team May 6, 2015 12:33 PM UTC

Hi Helmut,

Sorry for the inconvenience caused.


In our previous update, we have provided solution to resolve the intellisense issue in Xamarin as there is a namespace conflict between two properties, as EndValue property of Scale can be bind with any double value properties, we have provided the code snippet for illustration purpose. We have created a simple sample for the same, please find the sample below,


Sample: Xamarin.Binding_Programatically.zip


In the above sample, we have bind the EndValue of Scale with CustomEndValue Property for that please refer the below code snippet.


C#
scale.SetBinding(Syncfusion.SfGauge.XForms.Scale.EndValueProperty, new Binding("CustomEndValue") { Source = this });



Note: The above highlighted namespace is to resolve the intellisense issue.


Please let us know, if you have any queries.


Regards,

Nijamudeen M.


Loader.
Up arrow icon