Is it possible to Convert a string to Title Case in Xamarin.Forms?

前端 未结 5 877
遇见更好的自我
遇见更好的自我 2021-01-22 13:46

So in my program I have an Entry like so:


and this is bound to a property.

I ha

5条回答
  •  日久生厌
    2021-01-22 14:09

    TextInfo textInfo = new CultureInfo("pt-BR", false).TextInfo;
    entryName.Text = textInfo.ToTitleCase(entryName.Text);
    

提交回复
热议问题