CommunityToolkit/WindowsCommunityToolkit

DataGridRows are not where they should be in release mode

Open

#3,463 opened on 2020年9月3日

GitHub で見る
 (29 comments) (1 reaction) (0 assignees)C# (1,403 forks)batch import
DataGrid :capital_abcd:bug :bug:help wanted

Repository metrics

Stars
 (5,708 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

I had opened a previous issue about DataGridRows not being accessible in release mode (https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/3079). Sadly, I was not active in the issue and it got closed without being fixed. I did a little more digging and came up with good steps to reproduce the issue.

Describe the bug

  • DataGridRows show up on the tree differently in release mode than debug mode

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work: I am fairly certain that this used to work, I dont know when it last did though

Steps to Reproduce

ReleaseDataGrid.zip

  1. Launch attached project in release mode
  2. Open Accessibility Insights for Windows
  3. Hover over the first row
  4. In Accessibility insights, the tree looks like the first screenshot

Expected behavior

  • The row should show correctly in the tree, like in the second screenshot

Screenshots

This first image is the tree of an app in release mode. You can see that the parent of data item (The row) is the window. This is in release mode image

The second image here is the tree of the same app in debug mode. In debug mode the parent of data item is the data grid (this is what I would expect) image

Environment

NuGet Package(s) and Versions: Microsoft.NETCore.UniversalWindowsPlatform, version 6.2.10 Microsoft.Toolkit.Uwp.UI, version 6.1.1 Microsoft.Toolkit.Uwp.UI.Controls.DataGrid, version 6.1.1

Windows 10 Build Number:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • May 2019 Update (18362)
  • May 2020 Update (19041)
  • Insider Build (build number: )

App min and target version:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • May 2019 Update (18362)
  • May 2020 Update (19041)
  • Insider Build (xxxxx)

Device form factor:

  • Desktop
  • Xbox
  • Surface Hub
  • IoT

Visual Studio

  • 2017 (version: )
  • 2019 (version: 16.6.5)
  • 2019 Preview (version: )

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