Forum Libraries, Components, and Plugins


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Is it possible to style Acr.UserDialogs ?

Using Acr.UserDialogs in a project and I've been asked to make some UI tweaks to parts of the dialogs in the app. For example, reduce the width of the Prompt text entry and make text centred. Or CHange the colour of an Alert box to indicate a warning.

So was wondering if anyone had an idea, and some sample code, on how these type of UI stylings could be down with the dialogs.



  • DarrenKayDarrenKay GBUniversity ✭✭

    I've managed to fix the padding of the prompt EditText using some code submitted to the GitHub project (

    Trying to centre the text in the EditText, neither of these worked;

    txt.Gravity = GravityFlags.CenterHorizontal;
    txt.TextAlignment = TextAlignment.Center;
  • DwightHydeDwightHyde USMember ✭✭

    Hi Darren. Were you able to accomplish this? I'm trying to underline some text. Thanks.

  • DarrenKayDarrenKay GBUniversity ✭✭

    Not really. Managed to introduce margins around entry boxes so they indented level with labels. Uses the styles.xml to change the colours. That was it.

Sign In or Register to comment.