- Home
- Forum
- Xamarin.Forms
- Model binding on iOS
Model binding on iOS
{
var model = new mo
model.Value = 50;
var pointer = new
Color = Color.
};
var pointer2 = new
Color = Color.
};
pointer.BindingCon
pointer.SetBinding
pointer2.BindingCo
pointer2.SetBindin
Scale scale = new
StartValue = 0
EndValue = 100
StartAngle = 1
SweepAngle = 1
RimThickness =
RimColor = Col
ShowLabel = fa
LabelColor = C
Pointers = {
pointer,
pointer2
}
};
var gauge = new Sf
Headers = {
new Header
Text =
}
},
FrameType = Fr
Scales = {
scale
}
};
var text = new Lab
text.BindingContex
text.SetBinding<mo
Task.Run(() => {
var rand = new
while(true) {
Task.Delay
model.Valu
}
});
return new Content
Content = new
Children =
gauge,
text
}
}
};
}
}
Sorry for the inconvience caused.
We are able to see the reported behavior in iOS Gauge and it has been confirmed as a defect. This fix for this issue will be included in our upcoming volume release. Alternatively the issue can also be resolved by binding the GaugeValue property of gauge instead of binding it to the Pointer value (Applicable only for iOS).
Please let us know if you need any further assistance,
Regards,
Arun
Hi Rune,
Sorry about the inconvenience caused.
We are able to reproduce the issue in iOS Xamarin.Forms. We will fix this issue in our next service pack release which will be available at the end of November, 2014. However, you can resolve this issue by using following workaround,
Code snippet [C#]:
Color color = Color.Gray;
ColumnSeries series = newColumnSeries ();
series.Color = Device.OnPlatform (Color.FromRgba (color.R / 255, color.G, color.B / 255, color.A / 255), color, color);
We have prepared a sample based on this and you can find the sample in the following location.
Disclaimer: The date for the release is tentative and not a commitment on our parts.
Please let us know if you require further assistance on this.
Regards,
Karthikeyan V
Attachment: SimpleChartSample_9b2b1723.zip
Hi Shashidhar,
Sorry for the inconvenience caused.
We are able to reproduce the issue with binding the pointer in CircularGauge iOS 64-bit platform. We have resolved the same, please find the respective custom assemblies below,
Custom assemblies for Gauge (iOS): Dll.zip
The fix for this issue will be included in our upcoming release, If the provided solution doesn’t meet your requirement, could you please provide us a simple issue reproducing sample, so that we could analyse on it and provide you better solution.
Regards,
Joy Oyiess Rex K
Thanks for your reply
After adding the dll from Dll.zip, i am getting the following Error
Error CS0012: The type `Xamarin.Forms.Platform.iOS.ViewRenderer`2<Syncfusion.SfGauge.XForms.SfCircularGauge,Syncfusion.SfGauge.iOS.SFCircularGauge>' is defined in an assembly that is not referenced. Consider adding a reference to assembly `Xamarin.Forms.Platform.iOS, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null' (CS0012)
Also i am not able to change the StartValue and EndValue based on the value that set to the pointer.
Hi Shashidhar,
We are not able to reproduce the mentioned issue from the provided assemblies. We suspect that the mentioned issue is due to the version mismatch in the Xamarin assemblies, so could you please remove and update the Xamarin nuget package again in your project.
If you can't resolve the mentioned issue, could you please provide us an issue reproducing sample, so that we could analyse on it and provide you better solution.
Please let us know, if you have any concerns.
Regards,
Joy Oyiess Rex K
I am using following config
=== Xamarin Studio ===
Version 5.8 (build 443)
Installation UUID: 2290c4f3-f2f6-40b3-a173-1eea6645263b
Runtime:
Mono 3.12.1 ((detached/b7764aa)
GTK+ 2.24.23 (Raleigh theme)
Package version: 312010000
=== Apple Developer Tools ===
Xcode 5.0.2 (3335.32)
Build 5A3005
=== Xamarin.iOS ===
Version: 8.8.0.2 (Indie Edition)
Hash: ccfcd59
Branch:
Build date: 2015-03-10 02:20:32-0400
=== Xamarin.Android ===
Version: 4.20.0.37 (Indie Edition)
Android SDK: /Users/krish/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
4.0 (API level 14)
4.0.3 (API level 15)
4.2 (API level 17)
4.3 (API level 18)
4.4 (API level 19)
5.0 (API level 21)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
Xamarin.forms 1.3.1.6296
Hi Shashidhar,
Could you please update your xcode to latest version and revert us back if the issue exist even after that. And also please share the reproducing samples so that we could analyse on it and provide you better solution.
Please let us know, if you have any concerns.
Regards,
Joy Oyiess Rex K
Thanks in advance.
Hi Shashidhar,
Sorry for the delay in get back to you.
You can use our updated Xamarin forms assemblies which is available for download under the following link:
If the mentioned issue occurred even after updated to our latest version, then please update your xcode to latest version to resolve the mentioned issue.
Please let us know, if you have any concerns.
Regards,
Joy Oyiess Rex K
I found the solution for binding needle value. What i did is, assigned BindingContext property for needle value too, but i am not able to change the StartValue and EndValue propety in iOS not even in your given example( able to set in Android),i think it may be because i am using Xcode 5.0.2 which i can't update to newer version since i am using Mountain Lion (Version 10.8.5) in VMWarePlayer (Version 5.0.0 build-812388).
Thanks for your support
Regards,
Shashidhar K
The reported issue has been fixedand we have created a new incident for follow up. You can download the custom assemblies for the fix from the incident.
Please let us know if you have any queries.
Thanks,
Nijamudeen M.
- 13 Replies
- 6 Participants
-
RJ Rune Jensen
- Nov 4, 2014 10:18 AM UTC
- Apr 13, 2015 01:02 PM UTC