Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Problem with Xamarin.Forms.ViewExtensions.LayoutTo method (returns false)

$
0
0

Hi There,

I am working on making custom slider which looks same in both iOS and android.

I have achieved this by applying pan gesture on platforms and then i am updating bounds with help of Xamarin.Forms.ViewExtensions.LayoutTo method.
i am also updating title after 'LayoutTo' method. But some time it returns false but actually animation has done and my pointer is also moved to the specific position. I have put the await with LayoutTo after await i am updating current value of slider, but if layoutTo returns false then it gives weird behavior.

Is there a bug or am i missing something.

Also i have write one simple method which call layoutTo method and after its await update the title of button, but when i call this method button moves specific position but when i am going to update the title, it gives weird behavior. I have checked the bool value which LayoutTo returns, it gives the false value.

Please help me out.

Thanks,


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>