Change Dock position in codebehind

2 posts, 0 answers
  1. Akram
    Akram avatar
    45 posts
    Member since:
    Dec 2012

    Posted 01 Jun 2013 Link to this post

    Hi Telerik,

    Can i change the Dock position of RadPane in code behind? now i can do that using mouse drag and drop

  2. Vladi
    Vladi avatar
    744 posts

    Posted 06 Jun 2013 Link to this post


    In order to change the docked position of a RadPane you will need to:
    • Create a new RadSplitContainer and set its InitialPosition
    • Create a new PaneGroup and add it to the SplitContainer's Items
    • Remove the Pane from its current PaneGroup and add it to the newly created PaneGroup
    • Add the newly created SplitContainer to the Docking control's Items.

    I created and attached sample project for you with the described approach, hope this is helpful.


    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top