I use Xamarin and create my own view using XAML, and I canโt get this shortcut for life so that it turns around the way I want it. If the shortcut hits the edge of the screen, I want to wrap this ...

Now it looks like this:

Here is my code:
<StackLayout Orientation="Vertical" HorizontalOptions="StartAndExpand" BindingContext="{Binding CurrentProviderDetails}" Padding="20,20,20,20" > <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <StackLayout Orientation="Horizontal" HorizontalOptions="StartAndExpand" Grid.Row="0" Grid.Column="0" > <Label Text="Certification Board: " FontSize="13" HorizontalOptions="Fill" VerticalOptions="CenterAndExpand" /> <Label Text="{Binding Certification}" VerticalOptions="CenterAndExpand" HorizontalOptions="Center" Font="17" LineBreakMode="WordWrap"/> </StackLayout> </Grid> </StackLayout>
It does not have to be in the grid, it was only the method that I tried now. My only requirement is the โCertification Boardโ - this is a label, and I need to convey the meaning that the word carries when it reaches the end of the screen. Any help would be awesome, thanks!
xaml label xamarin textwrapping
stepheaw
source share