Area for the tabbed documents...

6 posts, 0 answers
  1. liviu
    liviu avatar
    14 posts
    Member since:
    Mar 2007

    Posted 14 Sep 2007 Link to this post


    Hi!

    I have a docking manager and I opened it with a DockPanel normally docked and one docked as tabbed document. When I close this tabbed document or  I change his state to floating, it remains an area which
    it's no longer usable by the other DockPanel. Is it a way to make this happen? The remaining dockPanel should extend to the whole area of the docking manager.  


    Regards
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 14 Sep 2007 Link to this post

    Hi Liviu,

    This is the default behavior of the DockingManager. To change it, set DockingManager's TdiContainerVisible property to true.


    Sincerely yours,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. liviu
    liviu avatar
    14 posts
    Member since:
    Mar 2007

    Posted 14 Sep 2007 Link to this post


    Thanks for the prompt answer, but I don't think I made myself clear.

    TDIContainerVisible = true means that the container for the tabbed documents is visible all the time ... even in design mode when I don't have any tabbed documents opened.

    This is not what I need. If I don't have tabbed documents opened, the container shouldn't be visible.  TDIContainerVisible =false makes it true when I launch the application.
    But if I opened a tabbed document and then closed it, the container remains visible and this is not what I want.

    I hope I explained myself better.

  5. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 17 Sep 2007 Link to this post

    Hi Liviu,

    In this scenario you can use the following snippet:

    private void dockingManager1_DockingStateChanged(object sender, Telerik.WinControls.Docking.DockingChangedEventArgs e)    
    {    
        if(this.dockingManager1.Documents.Count == 0)    
        {    
            dockingManager1.TdiContainerVisible = false;    
        }    
    }    
     


    Best wishes,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. liviu
    liviu avatar
    14 posts
    Member since:
    Mar 2007

    Posted 17 Sep 2007 Link to this post


    The closing button of a DockPanel doesn't removed it from the dockingManager. It just makes it invisible and this is the behaviour I need.
    But even if I test that all the documents of the dockingManager are invisible and try to set dockingManager.TdiContainerVisible = false it doesn't work. My guess is that internally it is made another test ....

    Regards



  7. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 18 Sep 2007 Link to this post

    Hi Liviu,

    When a DockPanel is closed, it is not removed from DockingManager. The DockPanel window is removed from the DockingManager and the state of the closed DockPanel changes to Hidden.

    In order to use the DockingManager with the TdiContainerVisible property set to false, you must change the value of the DockState property to values different from TabbedDocument for all DockPanels. The mode specified by the TdiContainerVisible = false will only work correctly only when all TabbedDocument panels such as DocumentPane are closed.

    Thank you for contacting us. Please do not hesitate to contact us with any other issues you might be having.

    Kind regards,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready