Quantcast
Channel: How to add new line in FormattedString - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by hossein sedighian for How to add new line in FormattedString

sometimes it is bettter to use this one<StackLayout><Label><Label.FormattedText><FormattedString.Spans><Span Text="First Text"/>...

View Article


Answer by Damien Doumer for How to add new line in FormattedString

Here is a "Cleaner" Solution fully in XAML:First, add this namespace to your XAML: xmlns:system="clr-namespace:System;assembly=netstandard"This is the system namespace and it contain all system...

View Article

Answer by Martin Rhodes for How to add new line in FormattedString

You can also do this using XAML property element syntax:<Label><Label.FormattedText><FormattedString><Span><Span.Text>Line 1Line...

View Article

Answer by Giorgi for How to add new line in FormattedString

You can use Environment.NewLine to move text to the next line like this: public FormattedString FormattedDescription { get { return new FormattedString { Spans = { new Span { Text = RoleName, FontSize...

View Article

How to add new line in FormattedString

public FormattedString FormattedDescription { get { return new FormattedString { Spans = { new Span { Text = RoleName, FontSize = 16, FontAttributes = FontAttributes.Bold }, new Span { Text = "/ "+...

View Article

Browsing latest articles
Browse All 5 View Live