maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Issue1914.cs

29 строки
689 B
C#
Исходник Обычный вид История

2016-03-22 23:02:25 +03:00
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
2016-03-22 23:02:25 +03:00
namespace Xamarin.Forms.Controls.Issues
2016-03-22 23:02:25 +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
{
public Issue1914()
2016-03-22 23:02:25 +03:00
{
Content = new Rotator();
2016-03-22 23:02:25 +03:00
}
class Rotator : AbsoluteLayout
{
public Rotator()
2016-03-22 23:02:25 +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;
image.RotateTo(3600, 10000);
2016-03-22 23:02:25 +03:00
}
}
}
}