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