Bug 23748 - Rotation Animation always around 0,0 anchor [Regression]
Summary: Rotation Animation always around 0,0 anchor [Regression]
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-10-10 16:59 UTC by Scott Davis
Modified: 2016-03-18 08:24 UTC (History)
6 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Scott Davis 2014-10-10 16:59:16 UTC
Xamarin Forms 0.0 (version that comes with project template) correctly rotates an image around 0.5 , 0.5 anchor.  Upgrading Nuget package to 1.3 results in breaking behavior.

//CODE TIP: this is a control that extends an AbsoluteLayout to create a circle button control (with rotating visual elements) that is a content container like Windows Phone button control

this.RotateImage1 = new Image { Aspect = Aspect.AspectFit, Source = ImageSource.FromFile(pathPrefix + "rotate_button_circle.png") };
double pct = (height - 16d) / height; //small caption below button image is 16.5dp tall
var pos = new Rectangle(0.5, 0, pct, pct);
this.Children.Add(this.RotateImage1, pos, AbsoluteLayoutFlags.All);
var Ring1Rotator = new Animation(d => this.RotateImage1.Rotation = d, 0, -360);
Ring1Rotator.Commit(RotateImage1, "RotateRing1", length: (uint) 60000, easing: Easing.Linear, repeat: () => true);

Jason Smith observed bug at Evolve Conf and asked for this submission.
Comment 1 Udham Singh 2014-10-20 11:02:56 UTC
We have tried to reproduce this issue but not able to reproduce this. Could you please provide us a sample app and build info, so that we can reproduce this issue at our end.

Environment Info :

Windows 8
VS 2013
Xamarin.iOS Build Host
Comment 2 Scott Davis 2014-10-26 09:15:30 UTC
I've zipped the sample project that Jason Smith and I used to reproduce the bug at Evolve.  Download here.  Please let me know when you have downloaded so I can remove link. https://dl.dropboxusercontent.com/u/10162274/Qonqr.Client.Rotator.Only.zip
Comment 3 Stephane Delcroix 2014-10-28 06:03:06 UTC
Scott, we got it, you remove the link and the file. thanks
Comment 4 Jason Smith [MSFT] 2016-03-18 08:24:23 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we no longer believe it affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.
For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d

Warm regards,
Xamarin Forms Team