summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1914.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1914.cs')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1914.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1914.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1914.cs
new file mode 100644
index 00000000..ebdbbd23
--- /dev/null
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue1914.cs
@@ -0,0 +1,27 @@
+´╗┐using System;
+using Xamarin.Forms.CustomAttributes;
+
+namespace Xamarin.Forms.Controls
+{
+ [Preserve (AllMembers=true)]
+ [Issue (IssueTracker.Github, 1914, "Android rotation ignores anchor", PlatformAffected.Android)]
+ public class Issue1914 : ContentPage
+ {
+ public Issue1914 ()
+ {
+ Content = new Rotator ();
+ }
+
+ class Rotator : AbsoluteLayout
+ {
+ public Rotator ()
+ {
+ var image = new Image {Aspect = Aspect.AspectFit, Source = "bank.png"};
+ Children.Add (image, new Rectangle (.5,0,100,100), AbsoluteLayoutFlags.All);
+ VerticalOptions = HorizontalOptions = LayoutOptions.Center;
+ image.RotateTo (3600, 10000);
+ }
+ }
+ }
+}
+