I\'m trying to add a custom content to a button in Xamarin Forms.
By default Button is created like this:
Thanks Tomasz for creating ContentButton
.
I have used it successfully, adding a CommandParameter
in a similar way:
public static readonly BindableProperty CommandParameterProperty =
BindableProperty.Create(nameof(CommandParameter), typeof(object), typeof(ContentButton));
public object CommandParameter
{
get { return (object)GetValue(CommandParameterProperty); }
set { SetValue(CommandParameterProperty, value); }
}