Skip to content

Instantly share code, notes, and snippets.

View dhindrik's full-sized avatar
😎
Writing code!

Daniel Hindrikes dhindrik

😎
Writing code!
View GitHub Profile
<controls:Button CornerRadius="10" AnimationScale="0.95">
<Label Text="Save" HorizontalOptions="Center" />
</controls:Button>
<controls:Button CornerRadius="10" AnimationScale="0.95">
<StackLayout Orientation="Horizontal" Spacing="10" HorizontalOptions="Center">
<Image Source="apple.png" />
<Label Text="Sign in with Apple" HorizontalOptions="Center" />
</StackLayout>
</controls:Button>
public class Button : PancakeView
{
public static BindableProperty CommandProperty = BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(Button));
public static BindableProperty CommandParameterProperty = BindableProperty.Create(nameof(CommandParameter), typeof(object), typeof(Button));
public ICommand Command
{
get => (ICommand)GetValue(CommandProperty);
set => SetValue(CommandProperty, value);
}