Skip to content

[Material] NavigationViewItem does not show Chevron icon even if it has children and there is no way to trim Title text. #1551

@ADD-Noureddine-Maachi

Description

@ADD-Noureddine-Maachi

Current behavior

  • Even if a NavigationViewItem has children the Chevron icon is not visible.
  • There is no way to set TextTrimming for 'x:Name=ContentPresenter'

Expected behavior

  • If a NavigationViewItem contains children the Chevron icon should be visible.
  • There should be a way to set TextTrimming for the 'x:Name=ContentPresenter'.

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

  1. Open the attached project, compile and run it.
  2. Observe that the first NavigationViewItem has a long text that is not trimmed.
  3. Press the item that says 'father' to see that it has children but there is no Chevron icon in that item.

Workaround

Custom Template copying the Material NavigationViewItem removing prefix 'todo:' from the 'ExpandCollapseChevron' Grid.

Environment

Nuget Package: Uno.WinUI

Package Version(s): 6.0.797

Affected platform(s):

All platforms should be affected. The ones marked are the ones I've tested.

  • WinUI
  • Desktop
  • WebAssembly
  • iOS
  • Android
  • MacOS

Anything else we need to know?

Repro project

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      SYSTEM_READY >> ...MS