VisualTreeHelper.FindElementsInHostCoordinates is not return controls from the window

5 posts, 1 answers
  1. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 28 Jul 2011 Link to this post

    Hello!

    I have a question.
    We use method VisualTreeHelper.FindElementsInHostCoordinates for finding all elements by mouse position.
    In the Q1 Release this methods return window and child control.
    But in the Q2 it's not return them.
    How can I find all controls under mouse position in the window?

    For more details, we use VisualTreeHelper.FindElementsInHostCoordinates(position, Application.Current.RootVisual)

    Thanks, Anatoly Chekh.

  2. Alex
    Alex avatar
    30 posts
    Member since:
    Aug 2010

    Posted 28 Jul 2011 Link to this post

    Please help!!!

    We just updated to the new release and this issue broke the major functionality in our application.
  3. DevCraft banner
  4. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 02 Aug 2011 Link to this post

    Hello Alex,

    Thank you for contacting us.
    What we changed was that we moved the RadWindow's popups out of the VisualTree - that was a work-around intended for internal use only which we don't need anymore. What I would suggest you is to change all the places where you call this method to do one additional check - is the point in one of the opened windows. You could use the RadWindowManager class to access all the opened Windows.

    Hope this helps.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  5. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 02 Aug 2011 Link to this post

    Thanks, but RadWindowManager.GetWindows now return empty list (http://www.telerik.com/community/forums/silverlight/window/radwindowmanager.aspx) so we need to use ourself Manager.
  6. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 03 Aug 2011 Link to this post

    Hello Anatoly,

    You are correct that such an issue exists in the Q2 2011 release, but we managed to fix it in the internal build. You could also keep track of the opened windows yourself as you suggested.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top
DevCraft banner