Hot tracking in WindowsFormsHost

3 posts, 0 answers
  1. Jason
    Jason avatar
    47 posts
    Member since:
    Jan 2013

    Posted 02 May 2014 Link to this post

    I'm having a issue with the hot tracking of input controls hosted on a WindowsFormsHost in an WPF application.

    The situation is a host that has half a dozen RadTextBoxes on it, stacked vertically. We have our own custom theme which hot tracks the mouse movement by changing the border of the text boxes - much in the same way that the Windows 7 theme does, going from grey to blue when the mouse moves over the control.

    If I now move my mouse up and down the form, going back and forth over the text boxes, the border colour changes don't always change correctly. It basically seems a little random. There are no issues with any of this functionality if I'm using the controls in a WinForms applications. 

    I'm not sure whether this is a WindowsFormsHost problem not catching the hover events properly, or a problem with hosted telerik controls, but any help would be appreciated. 

  2. Peter
    Peter avatar
    1148 posts

    Posted 05 May 2014 Link to this post

    Hello Jason,

    Thank you for your report.

    The WindowsFormsHost control have a different mouse events life cycle than standard winforms application (some mouse leave, enter and wheel events are not fired) and we cannot change this behavior. As a workaround I can suggest to change the TextBox border only in case that TextBox contains focus instead of hot tracking.

    I hope this will applicable for you application because we are not able to provide solution for this.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. DevCraft R3 2016 release webinar banner
  4. Jason
    Jason avatar
    47 posts
    Member since:
    Jan 2013

    Posted 06 May 2014 Link to this post

    Thanks. I was guessing it might be an issue with the host control itself
Back to Top