Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

iOS Button text padding

$
0
0

Y'Hello,

I'm using the code below to create a Button - nothing too fancy so far, huh? Anyway, I noticed Button doesn't have a Padding styling property, so my button on iOS looks a bit squished (see image). What's the best way to build in some left and right padding for this Button?

Thanks!

            return new Button
            {
                Text = name,
                BorderWidth = 2,
                BorderColor = grayColor,
                BackgroundColor = whiteColor,
                TextColor = tealColor,
                Image = name,
                Command = new Command(o =>
                {
                    // Determine which page needs to be loaded
                    // Set the MD Detail to the new content page
                    MDPage.Detail = CreateAppPage(name);
                    MDPage.IsPresented = false;
                }),
            };

Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>