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

Floating tool window close issue

3 Answers 78 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Glen
Top achievements
Rank 1
Glen asked on 13 Jul 2011, 03:32 PM
To reproduce run the demo:
http://demos.telerik.com/silverlight/#Docking/FirstLook


Unpin the 'Server Explorer'.

Moving your mouse over 'Server Explorer' tab header causes the window to fly out. On moving the mouse out of the tool window it then closes.

This behaviour however stops working once you click on the 'Server Explorer' tab header. Once you have clicked it's impossible for the window to close itself when the mouse is moved out of the tool window.

This issue has been a thorn for quite a while and I've noticed other users have also raised PITS suggesting clicking on the tab header should close the tool window. Either way we either need this behaviour fixed or the click on tab header closes fix implemented.

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 14 Jul 2011, 08:22 AM
Hello Glen,

 The scenario you described is intentional - when you click the fly-out or the header this pane becomes active and it gets closed when it looses the focus (when you click somewhere else). This feature should behave like the fly-outs in Visual Studio.

Please let us know if I'm missing something.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Glen
Top achievements
Rank 1
answered on 19 Jul 2011, 12:11 PM
That behaviour is fine if your other controls manage to gain focus to allow the heirarchy to close.

We've tried creating a behaviour so that when the mouseleave event is triggered for the pane we close the pane. This works well except we can't trawl the visualtree to find the base popup container. We need this as the behaviour we currently have closes the pane when the mouse is moved to the pane header which means the pane disappears and can't be pinned.

What's the best way to implement this functionality as we're getting to the point where we'll just have to remove the pane and code our own solution?
0
Miroslav Nedyalkov
Telerik team
answered on 20 Jul 2011, 07:18 AM
Hello Glen,

If you need to force the AutoHideArea to close (this is the control that displays the unpinned panes) you need to just move the focus and the mouse out of it. Closing the Popup directly is not supported and may cause side effects.

To move the focus out of the AutoHideArea you need to just call the Focus method to some Focusable and Visible control.

Hope this helps.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Docking
Asked by
Glen
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Glen
Top achievements
Rank 1
Share this question
or