How can i add wrappanel into RadRibbonGroup with HierarchicalDataTemplate?

2 posts, 0 answers
  1. Konstantin
    Konstantin avatar
    1 posts
    Member since:
    Aug 2013

    Posted 05 Aug 2013 Link to this post

    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.
  2. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 08 Aug 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top