Windowscommunitytoolkit: Sample app: MasterDetailsView page loads incorrectly

Created on 15 Jun 2020  路  10Comments  路  Source: windows-toolkit/WindowsCommunityToolkit

Describe the bug

The MasterDetailsView page does not render its content when opening, modifying the sample code howeer results in the sample to render.

  • [ ] Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:

Steps to Reproduce

Steps to reproduce the behavior:

  1. Open MasterDetailsView sample page
  2. See that the sample didn't render
  3. Modify sample code
  4. Sample renders now

Expected behavior

The sample should render when opening the page, not when the sample code has been modified.

Screenshots

gif

Environment

Windows Community Toolkit Sample App version: ???

image

Windows 10 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [x] Insider Build (build number: 19645)

App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] Insider Build (xxxxx)

Device form factor:
- [x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT

Visual Studio 
- [ ] 2017 (version: )
- [ ] 2019 (version: ) 
- [ ] 2019 Preview (version: )
- N/A

Additional context

Add any other context about the problem here.

This only happens on the FIRST load of the page. After I have visited the page once, this issue does not occur anymore. Only when the page gets opened for the first time in the apps lifecycle, this issue occurs.

bug sample app

Most helpful comment

Closing this as this seems to be fixed now.

All 10 comments

Hello chingucoding, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 馃檶

@chingucoding I am able to reproduce this as well. Do you want to work on the fix and create a PR?

V# 6.1.0

@chingucoding from the gifs above it does look like you are using 6.0 version. You will need to update to the newer version 6.1.0 via Microsoft Store but the bug still seems to be there as you highlighted.

@chingucoding I am able to reproduce this as well. Do you want to work on the fix and create a PR?

I am not sure when I'll have time for this since there are WinUI issues I want/need to finish first. But when I have time, I can try my luck.

If someone else wants to work on this though, I wouldn't mind either.

Thanks, @chingucoding! I have added the help wanted label if someone else is able to pick this up.

@skendrot @Kyaa-dost It seems that removing the following line fixes the problem:

https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/ae1dfcb152a9362215a65e75f518f149ec2f95ef/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/MasterDetailsView/MasterDetailsView.bind#L19

Not sure why though 馃 Would removing that line be a suitable fix? @skendrot are you looking into this right now?

@chingucoding That's an interesting find. Do the other pages that use that style fail to load correctly?

Interestingly. the other pages seem to load just fine. However all other pages don't load up with the XAML code being the first "visible" tab, that is MasterDetails view is the only one of those pages, that shows the XAML code when opening the page. All other samples show a different tab when opening the page. Maybe that is the issue here?

I just tested with the latest dev build and I cannot reproduce this issue. @chingucoding Can you confirm?

Closing this as this seems to be fixed now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kusanagi2k2 picture kusanagi2k2  路  4Comments

michael-hawker picture michael-hawker  路  4Comments

miguelarcilla picture miguelarcilla  路  4Comments

Joebeazelman picture Joebeazelman  路  3Comments

tibitoth picture tibitoth  路  3Comments