xamarin/Xamarin.Forms

[Bug] Not able to apply CSS styling to Span control

オープン

#5,979 opened on 2019/04/23

 (8 件のコメント) (4 件のリアクション) (1 人の担当者)C# (1,926 件のフォーク)batch import
e/3 :clock3:help wantedt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Description

Unable to use CSS styling on Span control inside FormattedText of Label. Although the docs mention this https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/styles/css/ ...

Steps to Reproduce

            <Label>
                <Label.FormattedText>
                    <FormattedString>
                        <Span Text="We want to hear your thoughts! Feel free to join our " />
                        <Span Text="Slack Organization" TextDecorations="Underline" />
                        <Span Text=" or send us an email at " />
                        <Span Text="testing@gmail.com" TextColor="#69d5b1" />
                    </FormattedString>
                </Label.FormattedText>
            </Label> 

We wanted to apply text color and text decoration through CSS styling, but were unable to do so.

Reproduction Link

Repository containing the page https://github.com/Coding-Coach/mobile/blob/556191e0d429a80a036d0928998255654c88d4e4/CodingCoach/CodingCoach/Views/ContactPage.xaml

コントリビューターガイド