Floating tool window close issue

4 posts, 0 answers
  1. Glen
    Glen avatar
    17 posts
    Member since:
    Aug 2010

    Posted 13 Jul 2011 Link to this post

    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.
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 14 Jul 2011 Link to this post

    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!

  3. DevCraft banner
  4. Glen
    Glen avatar
    17 posts
    Member since:
    Aug 2010

    Posted 19 Jul 2011 Link to this post

    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?
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 20 Jul 2011 Link to this post

    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!

Back to Top