This is a migrated thread and some comments may be shown as answers.

VisualTreeHelper.FindElementsInHostCoordinates is not return controls from the window

4 Answers 129 Views
Window
This is a migrated thread and some comments may be shown as answers.
Anatoly Chekh
Top achievements
Rank 1
Anatoly Chekh asked on 28 Jul 2011, 01:58 PM
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.

4 Answers, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 28 Jul 2011, 07:27 PM
Please help!!!

We just updated to the new release and this issue broke the major functionality in our application.
0
Miroslav Nedyalkov
Telerik team
answered on 02 Aug 2011, 01:39 PM
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 >>

0
Anatoly Chekh
Top achievements
Rank 1
answered on 02 Aug 2011, 01:48 PM
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.
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 03 Aug 2011, 08:43 AM
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 >>

Tags
Window
Asked by
Anatoly Chekh
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Anatoly Chekh
Top achievements
Rank 1
Share this question
or