How do I reserve a white space in a Formatted Text Label in Xamarin Forms I tried this but it doesn't seem to work
<Label FontSize="Medium">
<Label.FormattedText>
<FormattedString>
<Span xml:space="preserve">On PO: </Span>
<Span xml:space="preserve"> </Span>
<Span FontAttributes="Bold" FontSize="Large" Text="{Binding Qty}"/>
</FormattedString>
</Label.FormattedText>
</Label>
I get this error
Error Position 22:35. No property, bindable property, or event found for 'space', or mismatching type between value and property.
Use the text property of the span to give space.
<Label FontSize="Medium">
<Label.FormattedText>
<FormattedString>
<Span Text="On PO: "/>
<Span Text=" "/>
<Span FontAttributes="Bold" FontSize="Large" Text="{Binding Qty}"/>
</FormattedString>
</Label.FormattedText>
</Label>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With