NP.Avalonia.Demos
NP.Avalonia.Demos copied to clipboard
The Hosted WinForm UserControl doesn't respond to click event
Hi, thank you for your great blog.
When I follow your article about host WinForm UserControl, I encounter a suitation where the Hosted WinForm UserControl doesn't respond to Click event any more.
How to reproduce
- Run the HostingWinFormsDemo
- Click the
ClickMe
button, and theNumber clicks
does changes as expected. - Minimize the Avalonia App window, do anything else. Just keep the Avalonia App in sleep state for several minutes.
- Activate the Avalonia App windows again, Click the
ClickMe
button, and now theNumber clicks
does not respond to any click event.
Demo Gif: