diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2017-02-06 15:18:16 +0100 |
---|---|---|
committer | Stephane Delcroix <stephane@delcroix.org> | 2017-02-06 15:18:16 +0100 |
commit | faa6eae8e72d810c8d16dd92e02b305dbf35548c (patch) | |
tree | 78a91ae8be6dd37b03c2f345b54c07472d7f58b9 /Xamarin.Forms.Platform.WinRT | |
parent | fc7d556848e731902d096953c9b4fb28a2466e6b (diff) | |
download | xamarin-forms-faa6eae8e72d810c8d16dd92e02b305dbf35548c.tar.gz xamarin-forms-faa6eae8e72d810c8d16dd92e02b305dbf35548c.tar.bz2 xamarin-forms-faa6eae8e72d810c8d16dd92e02b305dbf35548c.zip |
Revert "[*] ScaleX and ScaleY"
This reverts commit fc7d556848e731902d096953c9b4fb28a2466e6b.
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs b/Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs index 6eadec76..760b9b30 100644 --- a/Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs +++ b/Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs @@ -188,7 +188,7 @@ namespace Xamarin.Forms.Platform.WinRT { UpdateScaleAndRotation(Element, Container); } - else if (e.PropertyName == VisualElement.ScaleProperty.PropertyName || e.PropertyName == VisualElement.ScaleXProperty.PropertyName ||)e.PropertyName == VisualElement.ScaleYProperty.PropertyName + else if (e.PropertyName == VisualElement.ScaleProperty.PropertyName) { UpdateScaleAndRotation(Element, Container); } @@ -470,8 +470,9 @@ namespace Xamarin.Forms.Platform.WinRT { double anchorX = view.AnchorX; double anchorY = view.AnchorY; + double scale = view.Scale; frameworkElement.RenderTransformOrigin = new Windows.Foundation.Point(anchorX, anchorY); - frameworkElement.RenderTransform = new ScaleTransform { ScaleX = view.Scale * view.ScaleX, view.Scale * view.ScaleY = scale }; + frameworkElement.RenderTransform = new ScaleTransform { ScaleX = scale, ScaleY = scale }; UpdateRotation(view, frameworkElement); } |