The MasterDetailsView page does not render its content when opening, modifying the sample code howeer results in the sample to render.
Steps to reproduce the behavior:
The sample should render when opening the page, not when the sample code has been modified.

Windows Community Toolkit Sample App version: ???

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
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.
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:
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.
Most helpful comment
Closing this as this seems to be fixed now.