Fixes compilation warnings

This commit is contained in:
Paul Schneider 2016-12-15 02:30:45 +01:00
commit 87f134e05b

View file

@ -15,7 +15,8 @@ namespace BookAStar.Views
/// Backing field for the Image property. /// Backing field for the Image property.
/// </summary> /// </summary>
public static readonly BindableProperty SourceProperty = BindableProperty.Create( public static readonly BindableProperty SourceProperty = BindableProperty.Create(
(Expression<Func<ImageButton, ImageSource>>)(w => w.Source), "Source",
typeof(ImageSource), typeof(ImageButton),
null, null,
BindingMode.OneWay, BindingMode.OneWay,
null, null,
@ -24,8 +25,9 @@ namespace BookAStar.Views
/// <summary> /// <summary>
/// Backing field for the Image property. /// Backing field for the Image property.
/// </summary> /// </summary>
public static readonly BindableProperty DisabledSourceProperty = BindableProperty.Create( public static readonly BindableProperty DisabledSourceProperty =
(Expression<Func<ImageButton, ImageSource>>)(w => w.DisabledSource), BindableProperty.Create(
"DisabledSource", typeof(ImageSource), typeof(ImageButton),
null, null,
BindingMode.OneWay, BindingMode.OneWay,
null, null,
@ -35,36 +37,37 @@ namespace BookAStar.Views
/// Backing field for the image width property. /// Backing field for the image width property.
/// </summary> /// </summary>
public static readonly BindableProperty ImageWidthRequestProperty = public static readonly BindableProperty ImageWidthRequestProperty =
BindableProperty.Create<ImageButton, int>( BindableProperty.Create("ImageWidthRequest",
p => p.ImageWidthRequest, default(int)); typeof(int), typeof(ImageButton), default(int));
/// <summary> /// <summary>
/// Backing field for the image height property. /// Backing field for the image height property.
/// </summary> /// </summary>
public static readonly BindableProperty ImageHeightRequestProperty = public static readonly BindableProperty ImageHeightRequestProperty =
BindableProperty.Create<ImageButton, int>( BindableProperty.Create("ImageHeightRequest",
p => p.ImageHeightRequest, default(int)); typeof(int), typeof(ImageButton), default(int));
/// <summary> /// <summary>
/// Backing field for the orientation property. /// Backing field for the orientation property.
/// </summary> /// </summary>
public static readonly BindableProperty OrientationProperty = public static readonly BindableProperty OrientationProperty =
BindableProperty.Create<ImageButton, ImageOrientation>( BindableProperty.Create("Orientation",
p => p.Orientation, ImageOrientation.ImageToLeft); typeof(ImageOrientation), typeof(ImageButton), ImageOrientation.ImageToLeft);
/// <summary> /// <summary>
/// Backing field for the tint color property. /// Backing field for the tint color property.
/// </summary> /// </summary>
public static readonly BindableProperty ImageTintColorProperty = public static readonly BindableProperty ImageTintColorProperty =
BindableProperty.Create<ImageButton, Color>( BindableProperty.Create("ImageTintColor",
p => p.ImageTintColor, Color.Transparent); typeof(Color), typeof(ImageButton), Color.Transparent);
/// <summary> /// <summary>
/// Backing field for the disbaled tint color property. /// Backing field for the disbaled tint color property.
/// </summary> /// </summary>
public static readonly BindableProperty DisabledImageTintColorProperty = public static readonly BindableProperty DisabledImageTintColorProperty =
BindableProperty.Create<ImageButton, Color>( BindableProperty.Create(
p => p.DisabledImageTintColor, Color.Transparent); "DisabledImageTintColor",
typeof(Color), typeof(ImageButton), Color.Transparent);
/// <summary> /// <summary>
/// Gets or sets the ImageSource to use with the control. /// Gets or sets the ImageSource to use with the control.