-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make navviewitem clickable after navview is freely moved between visualtrees. #249
Conversation
🎉 Handy links: |
Thank you reporting this. I'm investigating |
@jevansaks Is there something wrong? the bot said: Microsoft.UI.Xaml v2.1.190131001-prerelease has been released which incorporates this pull request. @fargate the code is not in offical nuget yet. |
I might have grabbed the wrong window of pull requests, I did it based off a GraphQL query of PRs merged into master but it might have caught too many. I’ll look into fixing the attribution for the next release.
|
Thanks for investigating. Any idea when this will be released? we have customers wanting to move to Windows 1809. |
We hope to do another prerelease next week. But if you can, please try the nupkg from the latest CI build (it's in the root of the artifacts drop on the build link) and make sure it's fixed there? |
Pulled the latest CI yesterday and tried it and the fix is good. Looking forward to the next release. Many thanks
From: Jevan Saks
Sent: Friday, 8 February, 06:36
Subject: Re: [Microsoft/microsoft-ui-xaml] make navviewitem clickable after navview is freely moved between visualtrees. (#249)
To: Microsoft/microsoft-ui-xaml
Cc: Kim Devaney, Mention
We hope to do another prerelease next week. But if you can, please try the nupkg from the latest CI build (it's in the root of the artifacts drop on the build link) and make sure it's fixed there?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#249 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFScSvcstBSmqibEC859yiUQaB1zucrIks5vLRr5gaJpZM4abT9E>.
|
🎉 Handy links: |
Fixes #18
This resolved two kinds of problem:
The root cause is because that unloaded and loaded event are not paired. When navview is unloaded, we revoked all the event token, but we didn't observe it again when navview is loaded again. After it's moved or page restored from cache, navviewitem doesn't raise click event anymore.
To keep the solution simple, I just hook/unhook titlebar events on unloaded/loaded event. we expect this because titlebar is in global space and it exists even if NavView is inactive or is destroyed.