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

How can i add wrappanel into RadRibbonGroup with HierarchicalDataTemplate?

1 Answer 99 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Konstantin
Top achievements
Rank 1
Konstantin asked on 05 Aug 2013, 09:45 AM
Hello.
Please help...
How can i add wrappanel into  RadRibbonGroup with HierarchicalDataTemplate?
I have a xaml code and it works fine:
<telerik:RadRibbonView DockPanel.Dock="Top">
            <telerik:RadRibbonTab Header="RadRibbonTab">
                <telerik:RadRibbonGroup Header="RadRibbonGroup" VerticalContentAlignment="Top">
                    <WrapPanel Orientation="Vertical">
                        <telerik:RadRibbonButton Text="RadRibbonButton" Height="5" VerticalAlignment="Top"/>
                        <telerik:RadRibbonDropDownButton Text="RadRibbonDropDownButton" Height="5" VerticalAlignment="Top"/>
                        <telerik:RadRibbonButton Text="RadRibbonButton" Height="5" VerticalAlignment="Top"/>
                        <telerik:RadRibbonDropDownButton Text="RadRibbonDropDownButton" Height="5" VerticalAlignment="Top"/>
                        <telerik:RadRibbonButton Text="RadRibbonButton" Height="5" VerticalAlignment="Top"/>
                        <telerik:RadRibbonDropDownButton Text="RadRibbonDropDownButton" Height="5" VerticalAlignment="Top"/>
                    </WrapPanel>
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
        </telerik:RadRibbonView>

How can I do the same with the ItemsSource and HierarchicalDataTemplate?
Thank you.

1 Answer, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 08 Aug 2013, 06:54 AM
Hello Konstantin,

In order to implement the RadRibbonView using HierarchicalDataTemplate's you need to follow the following hierarchy structure:
RadRibbonView -> RadRibbonTab -> RadRibbonGroup -> other RadRibbon controls. Hence, you need to implement hierarchy matching this structure. You can take a look at this demo to see how we implemented this structure.

I hope this information helps.

Kind regards,
Kiril Vandov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RibbonView and RibbonWindow
Asked by
Konstantin
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Share this question
or