I have a WPF application that is using a WindowsFormsHost control to host a control of Windows.Forms.
I tried to implement the MouseWheel event - but it seems that the the MouseWheel event never fired.
Is there a workaround for this issue?
I have a WPF application that is using a WindowsFormsHost control to host a control of Windows.Forms.
I tried to implement the MouseWheel event - but it seems that the the MouseWheel event never fired.
Is there a workaround for this issue?
one thing im gonna add... if a child of WindowsFormsHost is a Windows.Forms element then this link helps.
http://vastpark-svn.cvsdude.com/public/trunk/src/Sample.Client/WPFInputSource.cs
why im posting is i was looking for a solution and found.. so i thought it might be helpful somebody in the future. anyway, thanks for asking here first^^
A workaround is to use event MouseEnter.
Suppose you have a winform label in a WindowsFormHost
In XAML
In C#
.....
Now MouseWheel should work (label shoud change color)