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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

No Binding possible to Scale.EndValue

Thread ID:

Created:

Updated:

Platform:

Replies:

119009 May 4,2015 03:05 PM UTC May 6,2015 12:33 PM UTC Xamarin.Forms 3
loading
Tags: SfCircularGauge
Helmut Lubik
Asked On May 4, 2015 03:05 PM UTC

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



Thanks
Helmut

Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On 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.


Helmut Lubik
Replied On 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

Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On 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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;