Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to set data of a Path line segment with bindable objects.

NanousisNanousis Member
edited July 22 in Xamarin.Forms

Hey I have this path line

<Path StrokeThickness="3" Stroke="PaleGoldenrod" StrokeLineCap="Round"
      Data="{Binding route}" />

the binding route is a string with the data "M90,220 C50,150 50,100 80,80". If I simply put this data as a string on the data it will work like normal and render the line but if I use it with the bindable context it fails. More over I can not do it manually via code since the is a geometry and does not take a string. Is there any way I can use this data from my object to the Path or do I need to make a geometry inside my class and set the points manually?
Thanks in advance.

Best Answer


Sign In or Register to comment.