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.Core | |
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.Core')
-rw-r--r-- | Xamarin.Forms.Core/VisualElement.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/VisualElement.cs b/Xamarin.Forms.Core/VisualElement.cs index 352e2549..e0125f36 100644 --- a/Xamarin.Forms.Core/VisualElement.cs +++ b/Xamarin.Forms.Core/VisualElement.cs @@ -48,6 +48,10 @@ namespace Xamarin.Forms public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(double), typeof(VisualElement), 1d); + public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(double), typeof(VisualElement), 1d); + + public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(double), typeof(VisualElement), 1d); + public static readonly BindableProperty IsVisibleProperty = BindableProperty.Create("IsVisible", typeof(bool), typeof(VisualElement), true, propertyChanged: (bindable, oldvalue, newvalue) => ((VisualElement)bindable).OnIsVisibleChanged((bool)oldvalue, (bool)newvalue)); @@ -242,6 +246,16 @@ namespace Xamarin.Forms set { SetValue(ScaleProperty, value); } } + public double ScaleX { + get { return (double)GetValue(ScaleXProperty); } + set { SetValue(ScaleXProperty, value); } + } + + public double ScaleY { + get { return (double)GetValue(ScaleYProperty); } + set { SetValue(ScaleYProperty, value); } + } + public Style Style { get { return (Style)GetValue(StyleProperty); } |