diff options
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); } |