Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "Insert" method to ObaervableCollection binded to the NavigationView.MenuItemsSource lead false result #8370

Closed
optimodzhu opened this issue Apr 7, 2023 · 0 comments
Labels
area-NavigationView NavView control bug Something isn't working closed-Fixed Described behavior has been fixed. team-Controls Issue for the Controls team
Milestone

Comments

@optimodzhu
Copy link

optimodzhu commented Apr 7, 2023

Describe the bug

Hello!
The control I used is NavigationView from the Microsoft.Ui.Xaml, version 2.8.2, in a Universal Windows Platform Project.
I want to insert "Item 0”, "Item 2”, "Item 3”, "Item 4”, before "Items 4", "Items 5"...
I perform Insert( 0, item ) action by clicking "Insert" Button to the ObservableCollection binded to the MenuItems property. But I got a false result. For comparason, I place a ListView on the right side of the NavigationView, whose ItemsSource property also bind to the same ObservableCollection. The result of ListView is correct. See the picutre below. The "Item 0" appears twice in the NavigationView.
image

The same ObservableCollection lead to different result. I think it may be some bugs in NavigationView.

Thanks very much.

Steps to reproduce the bug

I upload my project here for you to further research. Click "Insert" Button, and you will see the result.
Demo.zip

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 2 - Microsoft.UI.Xaml 2.8.2

Windows version

No response

Additional context

No response

@optimodzhu optimodzhu added the bug Something isn't working label Apr 7, 2023
@bpulliam bpulliam added the team-Controls Issue for the Controls team label Aug 9, 2023
@JJBrychell JJBrychell added the area-NavigationView NavView control label Oct 12, 2023
@llongley llongley closed this as completed Dec 9, 2023
@llongley llongley added the closed-Fixed Described behavior has been fixed. label Dec 9, 2023
@bpulliam bpulliam added this to the WinAppSDK 1.5 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NavigationView NavView control bug Something isn't working closed-Fixed Described behavior has been fixed. team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

4 participants