Toolwindow and DocumentWindows : How to get the active one ?

2 posts, 0 answers
  1. Llorens Mathieu
    Llorens Mathieu avatar
    19 posts
    Member since:
    Jan 2009

    Posted 22 Oct 2009 Link to this post

    I have a dock component with a Toolwindow on the left (classical case) and a maximum of 4 documentWindows which are created on demand (A "new" button in the ribbon bar).

    So, I can clic on DocumentWidows to select one of them and do some action in the toolwindow (select a date for example) to refresh the content of the selected DocumentWindow.

    My problem is : How can I get the active documentWindow?

    I've tried MyDock.ActiveWindow but it constantly return the ToolWindow because when in clic on the controls inside my toolWindow, it activate it.

    What is the "best practice" to do what I want?

    Thank you
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 22 Oct 2009 Link to this post

    Hi Llorens Mathieu,

    You can get the currently active document window from the document windows that are parented in your instance of RadDock by using the ActiveDocument property of DocumentManager:
    this.radDock1.DocumentManager.ActiveDocument

    If you have additional questions, feel free to contact me.

    Greetings,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top