Skip to content

[Skia][Desktop] TextBlock ignores TextTrimming property (CharacterEllipsis and WordEllipsis not working) #18716

@kucint

Description

@kucint

Current behavior

Under Desktop framework, the TextBlock ignores TextTrimming property:
CharacterEllipsis and WordEllipsis are not working:

<StackPanel
  HorizontalAlignment="Center"
  VerticalAlignment="Center">
    <TextBlock
        Width="200"
        Text="CharacterEllipsis: Hello Uno Platform, this a very long text!"
        TextTrimming="CharacterEllipsis"
        HorizontalAlignment="Center" />
    <TextBlock
        Width="200"
        Text="WordEllipsis: Hello Uno Platform, this a very long text!"
        TextTrimming="WordEllipsis"
        HorizontalAlignment="Center" />
</StackPanel>

Desktop framework:

image

WindowsSdk framework: all is fine.

image

Expected behavior

Desktop framework shall mimic WindowsSdk framework.

How to reproduce it (as minimally and precisely as possible)

MINIMAL REPRO PROJECT: UnoTextBlockEllipsis.zip

Workaround

Works on UWP/WinUI

Yes

Environment

No response

NuGet package version(s)

"Uno.Sdk": "5.5.32"

Affected platforms

Skia (WPF)

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

Sub-issues

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions