Change the layout by code

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

    Posted 06 Jan 2013 Link to this post

    How can i change the layout of the RadDocking from code, i mean how to set the RadPane top,bottom,down or left.

  2. Vladi
    Vladi avatar
    749 posts

    Posted 09 Jan 2013 Link to this post

    Hi Akram,

    In order to change the docked position of a specific RadSplitContainer you should set the InitialPosition property of that container.

    The next code snippet shows how to dock the RadSplitContainer with x:Name="splitContainer" to the bottom:
    this.splitContainer.InitialPosition = Telerik.Windows.Controls.Docking.DockState.DockedBottom;

    Hope this is helpful.

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top