2
votes

We are developing an application using Xamarin Forms, but rely heavily on custom renderers for iOS, including as our button base class. I have a requirement to set all buttons in the application to a minimum width of 120, however it doesn't appear that MinimumWidthRequest accomplishes this. How would I set the minimum width of a button?

1

1 Answers

1
votes

try this alternative

  var button = new Button();
        if (button.WidthRequest < 120)
        {
            button.WidthRequest = 120;
        }