From 627ace8478c37c81c9df8a3ad13945cc9605ff62 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Thu, 15 Dec 2016 02:30:45 +0100 Subject: [PATCH] Fixes compilation warnings --- BookAStar/BookAStar/Views/ImageButton.cs | 29 +++++++++++++----------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/BookAStar/BookAStar/Views/ImageButton.cs b/BookAStar/BookAStar/Views/ImageButton.cs index 7926d7d4..84e4d080 100644 --- a/BookAStar/BookAStar/Views/ImageButton.cs +++ b/BookAStar/BookAStar/Views/ImageButton.cs @@ -15,7 +15,8 @@ namespace BookAStar.Views /// Backing field for the Image property. /// public static readonly BindableProperty SourceProperty = BindableProperty.Create( - (Expression>)(w => w.Source), + "Source", + typeof(ImageSource), typeof(ImageButton), null, BindingMode.OneWay, null, @@ -24,8 +25,9 @@ namespace BookAStar.Views /// /// Backing field for the Image property. /// - public static readonly BindableProperty DisabledSourceProperty = BindableProperty.Create( - (Expression>)(w => w.DisabledSource), + public static readonly BindableProperty DisabledSourceProperty = + BindableProperty.Create( + "DisabledSource", typeof(ImageSource), typeof(ImageButton), null, BindingMode.OneWay, null, @@ -35,36 +37,37 @@ namespace BookAStar.Views /// Backing field for the image width property. /// public static readonly BindableProperty ImageWidthRequestProperty = - BindableProperty.Create( - p => p.ImageWidthRequest, default(int)); + BindableProperty.Create("ImageWidthRequest", + typeof(int), typeof(ImageButton), default(int)); /// /// Backing field for the image height property. /// public static readonly BindableProperty ImageHeightRequestProperty = - BindableProperty.Create( - p => p.ImageHeightRequest, default(int)); + BindableProperty.Create("ImageHeightRequest", + typeof(int), typeof(ImageButton), default(int)); /// /// Backing field for the orientation property. /// public static readonly BindableProperty OrientationProperty = - BindableProperty.Create( - p => p.Orientation, ImageOrientation.ImageToLeft); + BindableProperty.Create("Orientation", + typeof(ImageOrientation), typeof(ImageButton), ImageOrientation.ImageToLeft); /// /// Backing field for the tint color property. /// public static readonly BindableProperty ImageTintColorProperty = - BindableProperty.Create( - p => p.ImageTintColor, Color.Transparent); + BindableProperty.Create("ImageTintColor", + typeof(Color), typeof(ImageButton), Color.Transparent); /// /// Backing field for the disbaled tint color property. /// public static readonly BindableProperty DisabledImageTintColorProperty = - BindableProperty.Create( - p => p.DisabledImageTintColor, Color.Transparent); + BindableProperty.Create( + "DisabledImageTintColor", + typeof(Color), typeof(ImageButton), Color.Transparent); /// /// Gets or sets the ImageSource to use with the control.