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

cant change the width of a button

$
0
0

I am creating a contact us button, but the widthRequest doesn't work on it. However the heightRequest works perfectly.

    var contactUs = new Button {
                Text = "Contact Us",
                TextColor = Color.White,
                BackgroundColor = Color.FromHex ("#FF5722"),
                Font = Font.SystemFontOfSize( 20 ),
                WidthRequest = 05,
                HeightRequest = 35

            };

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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