DEV Community

PeterMilovcik
PeterMilovcik

Posted on

2 1

Simple Xamarin.Forms - Button Samples

Here are few samples for Xamarin.Forms buttons.

ButtonA

<Button Text="Button A" />
Enter fullscreen mode Exit fullscreen mode

ButtonB

<Button 
    Text="Button B"
    CornerRadius="20" />
Enter fullscreen mode Exit fullscreen mode

ButtonC

<Button
    Text="C"
    CornerRadius="30"
    HeightRequest="60"
    WidthRequest="60" />
Enter fullscreen mode Exit fullscreen mode

ButtonD

<Button
    CornerRadius="45"
    HeightRequest="90"
    WidthRequest="90"
    ImageSource="image.png" />
Enter fullscreen mode Exit fullscreen mode

ButtonE

<Button
    BackgroundColor="Transparent"
    ImageSource="image.png" />
Enter fullscreen mode Exit fullscreen mode

What kind of button is missing that you would like to see here too? Let me know.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs