NP.Avalonia.Demos icon indicating copy to clipboard operation
NP.Avalonia.Demos copied to clipboard

The Hosted WinForm UserControl doesn't respond to click event

Open newbienewbie opened this issue 4 months ago • 0 comments

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

  1. Run the HostingWinFormsDemo
  2. Click the ClickMe button, and the Number clicks does changes as expected.
  3. Minimize the Avalonia App window, do anything else. Just keep the Avalonia App in sleep state for several minutes.
  4. Activate the Avalonia App windows again, Click the ClickMe button, and now the Number clicks does not respond to any click event.

Demo Gif: hosting-winform-usercontrol

newbienewbie avatar Mar 04 '24 04:03 newbienewbie