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

RadRibbonView Height issue - forces white space

1 Answer 93 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 17 Sep 2012, 01:54 PM
The RadRibbonView control appears to require a minimum height to display, leaving dead whitespace below it, the following does not display the actual ribbon bar:

<Grid x:Name="LayoutRoot">
<Grid.RowDefinitions>
<RowDefinition Height="150" />
<RowDefinition />
</Grid.RowDefinitions>
<telerik:RadRibbonView Grid.Row="0"  >
<telerik:RadRibbonTab Header="Home">
<telerik:RadRibbonGroup Header="Clipboard">
<telerik:RadRibbonSplitButton Text="Paste" 
                    telerik:ScreenTip.Title="Paste(Ctrl+V)"
                    telerik:ScreenTip.Description="Paste the contents the Clipboard.">
<telerik:RadRibbonSplitButton.DropDownContent>
<telerik:RadContextMenu BorderThickness="0">
<telerik:RadMenuItem Header="Paste" />
<telerik:RadMenuItem Header="Paste Form" />
</telerik:RadContextMenu>
</telerik:RadRibbonSplitButton.DropDownContent>
</telerik:RadRibbonSplitButton>
</telerik:RadRibbonGroup>
</telerik:RadRibbonTab>
</telerik:RadRibbonView>


<t:RadDocking Grid.Row="1" x:Name="_docking" PreviewClose="_docking_OnPreviewClose">
<t:RadDocking.DocumentHost>
<t:RadSplitContainer>
<t:RadPaneGroup x:Name="_paneGroup">
</t:RadPaneGroup>
</t:RadSplitContainer>
</t:RadDocking.DocumentHost>
</t:RadDocking>
</Grid>

but if I set the first row definition to 300 then it displays it with about 150px of dead white space below, why does the height of the control not work (incidentally specifying the RadRibbonView controls Height explicitly also does not change anything).  This is on Windows XP  Any ideas?

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 17 Sep 2012, 03:46 PM
Hello James,

Indeed the RadRibbonView is automatically collapsed in case its size is under the default threshold of 300x250px. This is a built-in feature of the control that is controlled through the CollapseThresholdSize property - you can use it to change the threshold size to a smaller value. The feature is described in more details in our online documentation.
 
Regards,
Tina Stancheva
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
RibbonView and RibbonWindow
Asked by
James
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or