Label wrapping with StackLayout

后端 未结 3 1719
情话喂你
情话喂你 2021-01-07 17:46

I\'m using Xamarin and creating my view with XAML and I cannot for the life of me get this label to wrap the way I want it to. If the label gets to the edge of the screen, I

3条回答
  •  半阙折子戏
    2021-01-07 18:39

    You can achieve the desired look by combining both of the Labels contained in your horizontally aligned StackLayout into a single Label and setting LineBreakMode="WordWrap". XAML has a great feature known as StringFormat. You can use this to prepend the static "Certification Board:" text to the bound Certification property. Your Label should look like this:

提交回复
热议问题