Docking & Ribbon...?

3 posts, 1 answers
  1. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 03 Nov 2009 Link to this post

    This question relates to the usage of Docking and Ribbon together.
    I'd like to ask the team what is the appropriate combination of Docking & Ribbon if you were to use them together?
    a) Should we use the docking control as the parent (container) for the Ribbon?
    b) Or should we place the Docking inside of the ribbon?

    Thanks!
    ..Ben
  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 04 Nov 2009 Link to this post

    Hello ..Ben,

    What I would suggest you is to not do any of this, but put them separately on the page. Of'course if your application logic needs that you may put the Ribbon in the Docking or via versa, but the way they are meant to be used is for example to put both of them in a Grid with two rows. Here is an example of what I mean:
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <telerikRibbon:RadRibbonBar Grid.Row="0" />
        <telerikDocking:RadDocking Grid.Row="1">
            <telerikDocking:RadSplitContainer InitialPosition="DockedTop" Orientation="Horizontal">
                <telerikDocking:RadPaneGroup
                        telerikDocking:ProportionalStackPanel.RelativeSize="400, 200">
                    <telerikDocking:RadPane Header="pane" />
                    <telerikDocking:RadPane Header="pane" />
                    <telerikDocking:RadPane Header="pane" />
                    <telerikDocking:RadPane Header="pane" />
                </telerikDocking:RadPaneGroup>
                <telerikDocking:RadPaneGroup>
                    <telerikDocking:RadPane Header="pane" />
                </telerikDocking:RadPaneGroup>
                <telerikDocking:RadPaneGroup>
                    <telerikDocking:RadPane Header="pane" />
                </telerikDocking:RadPaneGroup>
            </telerikDocking:RadSplitContainer>
     
            <telerikDocking:RadDocking.DocumentHost>
                <Grid>
                    <Button Content="Test" />
                </Grid>
            </telerikDocking:RadDocking.DocumentHost>
        </telerikDocking:RadDocking>
    </Grid>


    Kind regards,
    Miroslav Nedyalkov
    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. DevCraft banner
  4. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 04 Nov 2009 Link to this post

    Miroslav, thank you for response. I purposely did not put the third option in (your choice) to see if that should be the direction that you may suggest. I had originally thought about using them independently in a grid, but I recently saw a WinForm application that the Ribbon was embedded inside the Docking and that prompted me to ask the question.

    Thanks!
    ..Ben
Back to Top