Xamarin Forms Label - Justify?

前端 未结 10 2078

I just wanted to ask if there is any way to justify text in a Label. I am using Xamarin Forms Xaml.

Thanks.

UPDATE:

10条回答
  •  心在旅途
    2020-12-07 02:33

    Use the XAlign property

    Label lbl = new Label();
    lbl.Text = "I'm a Label!";
    lbl.XAlign = TextAligntment.Start; // Start, Center, End are valid
    

提交回复
热议问题