Skip to content

TextBlock text trimming is not working properly when it is inside the property TabViewItem.HeaderΒ #21043

@ADD-Noureddine-Maachi

Description

@ADD-Noureddine-Maachi

Current behavior πŸ›

When having a TextBlock inside the TabViewItem.Header property, the property TextBlock.IsTextTrimmed is not set as true and the TextBlock_IsTextTrimmedChanged event handler is not being raised.

Expected behavior 🎯

Have the property IsTextTrimmed with true as value and execute the event handler.

How to reproduce it (as minimally and precisely as possible) πŸ”¬

  1. Open the attached solution and compile it.
  2. Put a breakpoint inside the event handler in the MainPage.xaml code-behind.
  3. Execute it.
  4. See that does not go through the event handler except in WinUI.

Workaround πŸ› οΈ

No workaround found.

Renderer 🎨

  • Skia
  • Native

Affected platforms πŸ“±πŸ’»πŸ–₯️

Desktop (Windows), WebAssembly, Android

Uno.Sdk version (and other relevant versions) πŸ“¦

Uno.Sdk version: 6.0.146
Uno.WinUI version: 6.0.797

IDE version πŸ§‘β€πŸ’»

Visual Studio 2022 17.14.8

Anything else we need to know? πŸ’¬

Repro: TabViewItemTrimmingIssue.zip

Urgency: High
Impact: Low

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions