RibbonTab header width

2 posts, 0 answers
  1. Chris
    Chris avatar
    23 posts
    Member since:
    May 2011

    Posted 30 May 2012 Link to this post

    We like RadRibbonTab auto adjust the width of the header (Width="Auto"), but comparing RadRibbonTab with Excel, the header in Excel is about 25% wider then RadRibbonTab.  Could you please show me how to make the tab header more wider.
    The tab header in our application is created by user, so auto adjustable is necessary.  
    BTW: We are using RadControl 4.0.30319 
    Thanks,
    Chris
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 31 May 2012 Link to this post

    Hello Chris,

     You can use the HeaderTemplate to define different appearance of the tab header.

    <telerik:RadRibbonView>
                <telerik:RadRibbonTab Header="Tab 1">
                    <telerik:RadRibbonTab.HeaderTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding}" Margin="20 0" />
                        </DataTemplate>
                    </telerik:RadRibbonTab.HeaderTemplate>
                </telerik:RadRibbonTab>
            </telerik:RadRibbonView>

    Greetings,
    Miro Miroslavov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top