microsoft/microsoft-ui-xaml

NVI.IsSelected is ignored in hierarchical NavigationView for unrealized items

Open

#3,149 创建于 2020年8月17日

在 GitHub 查看
 (5 评论) (3 反应) (0 负责人)C# (5,815 star) (659 fork)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

贡献者指南