2016-03-22 23:02:25 +03:00
|
|
|
|
using System;
|
|
|
|
|
using Xamarin.Forms.CustomAttributes;
|
2016-04-26 18:20:55 +03:00
|
|
|
|
using Xamarin.Forms.Internals;
|
2016-03-22 23:02:25 +03:00
|
|
|
|
|
2018-11-07 01:00:08 +03:00
|
|
|
|
namespace Xamarin.Forms.Controls.Issues
|
2016-03-22 23:02:25 +03:00
|
|
|
|
{
|
2018-11-16 20:07:12 +03:00
|
|
|
|
[Preserve(AllMembers = true)]
|
|
|
|
|
[Issue(IssueTracker.Github, 1914, "Android rotation ignores anchor", PlatformAffected.Android)]
|
2016-03-22 23:02:25 +03:00
|
|
|
|
public class Issue1914 : ContentPage
|
|
|
|
|
{
|
2018-11-16 20:07:12 +03:00
|
|
|
|
public Issue1914()
|
2016-03-22 23:02:25 +03:00
|
|
|
|
{
|
2018-11-16 20:07:12 +03:00
|
|
|
|
Content = new Rotator();
|
2016-03-22 23:02:25 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Rotator : AbsoluteLayout
|
|
|
|
|
{
|
2018-11-16 20:07:12 +03:00
|
|
|
|
public Rotator()
|
2016-03-22 23:02:25 +03:00
|
|
|
|
{
|
2018-11-16 20:07:12 +03:00
|
|
|
|
var image = new Image { Aspect = Aspect.AspectFit, Source = "bank.png" };
|
|
|
|
|
Children.Add(image, new Rectangle(.5, .5, .5, .5), AbsoluteLayoutFlags.All);
|
2016-03-22 23:02:25 +03:00
|
|
|
|
VerticalOptions = HorizontalOptions = LayoutOptions.Center;
|
2018-11-16 20:07:12 +03:00
|
|
|
|
image.RotateTo(3600, 10000);
|
2016-03-22 23:02:25 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|