summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-02-06 15:16:54 +0100
committerStephane Delcroix <stephane@delcroix.org>2017-02-06 15:16:54 +0100
commitfc7d556848e731902d096953c9b4fb28a2466e6b (patch)
treec3c9f63f93bcf77af253aa027acc9648d2ffa7dd /Xamarin.Forms.Platform.WinRT
parent28237b7b27ef318b2c811e9829c2442613c42feb (diff)
downloadxamarin-forms-fc7d556848e731902d096953c9b4fb28a2466e6b.tar.gz
xamarin-forms-fc7d556848e731902d096953c9b4fb28a2466e6b.tar.bz2
xamarin-forms-fc7d556848e731902d096953c9b4fb28a2466e6b.zip
[*] ScaleX and ScaleY
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r--Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs b/Xamarin.Forms.Platform.WinRT/VisualElementTracker.cs
index 760b9b30..6eadec76 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)
+ else if (e.PropertyName == VisualElement.ScaleProperty.PropertyName || e.PropertyName == VisualElement.ScaleXProperty.PropertyName ||)e.PropertyName == VisualElement.ScaleYProperty.PropertyName
{
UpdateScaleAndRotation(Element, Container);
}
@@ -470,9 +470,8 @@ 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 = scale, ScaleY = scale };
+ frameworkElement.RenderTransform = new ScaleTransform { ScaleX = view.Scale * view.ScaleX, view.Scale * view.ScaleY = scale };
UpdateRotation(view, frameworkElement);
}