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

RibbonTab header width

1 Answer 55 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 30 May 2012, 07:01 PM
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

1 Answer, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 31 May 2012, 01:31 PM
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 >>

Tags
RibbonView and RibbonWindow
Asked by
Chris
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Share this question
or