This is a migrated thread and some comments may be shown as answers.

Docking & Ribbon...?

2 Answers 58 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Ben Hayat
Top achievements
Rank 2
Ben Hayat asked on 04 Nov 2009, 02:57 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 04 Nov 2009, 08:10 AM
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.
0
Ben Hayat
Top achievements
Rank 2
answered on 04 Nov 2009, 03:23 PM
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
Tags
Docking
Asked by
Ben Hayat
Top achievements
Rank 2
Answers by
Miroslav Nedyalkov
Telerik team
Ben Hayat
Top achievements
Rank 2
Share this question
or