Posted
on Sep 12, 2011
(permalink)
Hi.
I'm working with RadRibbonBar control and I have an issue when trying to add some RadRibbonContextualGroups. The issue is that the header width for the contextual group is the width of its child tabs.
I have a sample with a contextual group that has only one child tab. Text displayed in the RadRibbonContextualGroup header is greater than the text displayed in the tab. This makes the text on the contextual tab cut.
How can I make the tab size to adjust to the header text ?
Attached is an image that shows the problem. Here is a sample code:
<UserControl x:Class="SilverlightApplication3.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable="d">
<Grid x:Name="LayoutRoot">
<telerik:RadRibbonBar ApplicationName="test">
<telerik:RadRibbonTab Header="Inicio" Margin="4,0" IsSelected="True" >
<telerik:RadRibbonGroup Header="Aplicaciones">
<telerik:RadRibbonButton Text="Button" />
</telerik:RadRibbonGroup>
</telerik:RadRibbonTab>
<telerik:RadRibbonBar.ContextualGroupContainer>
<telerik:RadRibbonContextualGroupContainer>
<telerik:RadRibbonContextualGroup Header="Herramientas de Documentos" IsActive="True">
<telerik:RadRibbonTab Header="Documentos" >
<telerik:RadRibbonGroup Header="Aplicaciones">
<telerik:RadRibbonButton />
<telerik:RadRibbonButton />
<telerik:RadRibbonButton />
</telerik:RadRibbonGroup>
</telerik:RadRibbonTab>
</telerik:RadRibbonContextualGroup>
</telerik:RadRibbonContextualGroupContainer>
</telerik:RadRibbonBar.ContextualGroupContainer>
</telerik:RadRibbonBar>
</Grid>
</UserControl>