Skip to content
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

CoreWindow.GetForCurrentThread() is return null in WinUI Desktop after Upgrade of WinUI 3 Preview 4 #4225

Closed
Berkunath opened this issue Feb 17, 2021 · 3 comments
Labels
product-winui3 WinUI 3 issues team-Reach Issue for the Reach team version-winui3preview4 WinUI 3 Preview 4 issues

Comments

@Berkunath
Copy link

We have get the PointerCursor, PointerPosition and GetKeystates from the CoreWindow.GetForCurrentThread(). It works fine in WinUI 3 Preview 3. After upgrade of WinUI 3 Preview 4 CoreWindow.GetForCurrentThread() returns null

Expected behavior
CoreWindow.GetForCurrentThread() return proper value to get the PointerCursor, PointerPosition and GetKeyStates or suggest alternate solutions

NuGet package version:

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Feb 17, 2021
@StephenLPeters
Copy link
Contributor

This is expected as of preview 4. @anawishnoff do we have documentation for this?

@StephenLPeters StephenLPeters added version-winui3preview4 WinUI 3 Preview 4 issues product-winui3 WinUI 3 issues team-Reach Issue for the Reach team and removed needs-triage Issue needs to be triaged by the area owners labels Feb 19, 2021
@anawishnoff
Copy link
Contributor

Yes, please see this doc that outlines some replacements and workarounds for this issue: WinRT API changes for Desktop apps

@DRAirey1
Copy link

This is the problem I'm having. anawishnoff, your link send us to a dead page. How about just posting the work-around so we don't have to waste any more time with these changes. It's hard enough as it is to upgrade.

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label May 12, 2022
@krschau krschau removed the needs-triage Issue needs to be triaged by the area owners label Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product-winui3 WinUI 3 issues team-Reach Issue for the Reach team version-winui3preview4 WinUI 3 Preview 4 issues
Projects
None yet
Development

No branches or pull requests

6 participants