New to Telerik UI for WPF? Download free 30-day trial

Adjust ribbon view's height to its content

Environment

Product Version 2019.1.116
Product RadRibbonView for WPF

Description

How to autofit the content area of RadRibbonView to the elements in the selected tab.

Solution

To make the content height stretch based on the size of the elements in the selected tab, you can set the ContentHeight property of RadRibbonView to double.NaN.

<telerik:RadRibbonView ContentHeight="NaN" /> 

 this.radRibbonView.ContentHeight = double.NaN; 
Before (left) and after (right) visual example

See Also

In this article