microsoft/microsoft-ui-xaml

NVI.IsSelected is ignored in hierarchical NavigationView for unrealized items

Open

#3,149 opened on 2020年8月17日

GitHub で見る
 (5 comments) (3 reactions) (0 assignees)C# (5,815 stars) (659 forks)batch import
area-NavigationViewbughelp wantedteam-Controls

説明

Describe the bug

Steps to reproduce the bug

Create a NV with hierarchical NVI defined in XAML and set IsSelected to true on one of the child items. In the loaded event handler of that NV, observe how SelectedItem is null.

This behavior is also present when setting the IsSelected property later, as long as the item has not been rendered.

Expected behavior

The NV should know that one of it's children where selected. Screenshots

Version Info

NuGet package version:

latest commit

Windows app type:

UWP Win32
Windows 10 version Saw the problem?
Insider Build (xxxxx) Yes
May 2020 Update (19041)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Additional context

コントリビューターガイド