diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2017-02-06 15:16:54 +0100 |
---|---|---|
committer | Stephane Delcroix <stephane@delcroix.org> | 2017-02-06 15:16:54 +0100 |
commit | fc7d556848e731902d096953c9b4fb28a2466e6b (patch) | |
tree | c3c9f63f93bcf77af253aa027acc9648d2ffa7dd /Xamarin.Forms.Platform.WP8 | |
parent | 28237b7b27ef318b2c811e9829c2442613c42feb (diff) | |
download | xamarin-forms-fc7d556848e731902d096953c9b4fb28a2466e6b.tar.gz xamarin-forms-fc7d556848e731902d096953c9b4fb28a2466e6b.tar.bz2 xamarin-forms-fc7d556848e731902d096953c9b4fb28a2466e6b.zip |
[*] ScaleX and ScaleY
Diffstat (limited to 'Xamarin.Forms.Platform.WP8')
-rw-r--r-- | Xamarin.Forms.Platform.WP8/VisualElementTracker.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.WP8/VisualElementTracker.cs b/Xamarin.Forms.Platform.WP8/VisualElementTracker.cs index 45b51a95..c197bbfc 100644 --- a/Xamarin.Forms.Platform.WP8/VisualElementTracker.cs +++ b/Xamarin.Forms.Platform.WP8/VisualElementTracker.cs @@ -160,7 +160,7 @@ namespace Xamarin.Forms.Platform.WinPhone MaybeInvalidate(); else if (e.PropertyName == VisualElement.AnchorXProperty.PropertyName || e.PropertyName == VisualElement.AnchorYProperty.PropertyName) UpdateScaleAndRotation(Model, Element); - else if (e.PropertyName == VisualElement.ScaleProperty.PropertyName) + else if (e.PropertyName == VisualElement.ScaleProperty.PropertyName || e.PropertyName == VisualElement.ScaleXProperty.PropertyName || e.PropertyName == VisualElement.ScaleYProperty.PropertyName ) UpdateScaleAndRotation(Model, Element); else if (e.PropertyName == VisualElement.TranslationXProperty.PropertyName || e.PropertyName == VisualElement.TranslationYProperty.PropertyName || e.PropertyName == VisualElement.RotationProperty.PropertyName || e.PropertyName == VisualElement.RotationXProperty.PropertyName || e.PropertyName == VisualElement.RotationYProperty.PropertyName) @@ -350,9 +350,8 @@ namespace Xamarin.Forms.Platform.WinPhone { double anchorX = view.AnchorX; double anchorY = view.AnchorY; - double scale = view.Scale; frameworkElement.RenderTransformOrigin = new System.Windows.Point(anchorX, anchorY); - frameworkElement.RenderTransform = new ScaleTransform { ScaleX = scale, ScaleY = scale }; + frameworkElement.RenderTransform = new ScaleTransform { ScaleX = view.Scale * view.ScaleX, ScaleY = view.Scale * view.ScaleY }; UpdateRotation(view, frameworkElement); } |