Skip to content

ItemsSource in TreeView seems to require ObservableCollection #8248

Open

Description

Describe the bug

As far as I can tell, if the ItemsSource is not an ObservableCollection, TreeView does not display children correctly. I tried with List and IEnumerate and both showed this faulty behavior

Steps to reproduce the bug

Bind to List instead of ObservableCollection

Expected behavior

Show all elements in List

Screenshots

No response

NuGet package version

WinUI 2 - Microsoft.UI.Xaml 2.8.1

Windows version

Windows 10 (21H2): Build 19044

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions