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

WinForms app using WindowsXamlHost crashes when focus is changed away and back to the app #2491

Closed
nmetulev opened this issue Sep 21, 2018 · 2 comments · Fixed by #2497
Closed
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior controls 🎛️ in progress 🚧 XamlIslands 🏝️
Milestone

Comments

@nmetulev
Copy link
Contributor

Re: #2456

I'm submitting a...

  • Bug report (I searched for similar issues and did not find one)

Current behavior

Create a new Forms app, add the WindowsXamlHost with UWP content and launch app. Change focus away from app and back to the app. App crashes

Expected behavior

App should not crash

Environment

Nuget Package(s): Microsoft.Toolkit.Forms.UI.XamlHost

Package Version(s): 

Windows 10 Build Number:
- [ ] Creators Update (15063)
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [x] Insider Build (build number: 17758)

App min and target version:
- [ ] Creators Update (15063)
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [x] Insider Build (17758)

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

Visual Studio 
- [x] 2017 (version: )
- [ ] 2017 Preview (version: )

ping @ryalanms

@rjmurillo
Copy link
Contributor

rjmurillo commented Sep 26, 2018

Isn't this fixed with #2497?

@rjmurillo rjmurillo self-assigned this Sep 26, 2018
@rjmurillo
Copy link
Contributor

Ryland checked and #2497 and #2502 should put the WinForms stuff in a relatively good place (still some weirdness with focus and activation, but that will get fixed in future Insiders OS updates and we can remove the focus workaround).

@ghost ghost locked as resolved and limited conversation to collaborators Nov 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior controls 🎛️ in progress 🚧 XamlIslands 🏝️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants