Skip to content

Support Formatted Text + Html #44

@Axemasta

Description

@Axemasta

Add support for formatted text so that a user could provide HTML and have it render in a label using a FormattedString

Usage

 <Label FormattedText="{mocale:Localize MyHtmlKey" />

with the translation:
"MyHtmlKey" : "Hello <strong>World</World>

Rendering a formatted string along the lines of:

<Label>
    <Label.FormattedText>
        <FormattedString>
            <Span Text="Hello " />
            <Span FontAttributes="Bold" Text="World" />
        </FormattedString>
    </Label.FormattedText>
</Label>

Might be a bit difficult to get totally right, but worth a punt!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions