New to Telerik UI for WPF? Start a free 30-day trial
Adjust ribbon view's height to its content
Updated on Sep 15, 2025
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.
XAML
<telerik:RadRibbonView ContentHeight="NaN" />
C#
this.radRibbonView.ContentHeight = double.NaN;
