RadRibbonView Height issue - forces white space

2 posts, 0 answers
  1. James
    James avatar
    2 posts
    Member since:
    Sep 2012

    Posted 17 Sep 2012 Link to this post

    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?
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 17 Sep 2012 Link to this post

    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.

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