New to Telerik UI for WPFStart a free 30-day trial

Adjust ribbon view's height to its content

Updated on Sep 15, 2025

Environment

Product Version2019.1.116
ProductRadRibbonView 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;

Before (left) and after (right) visual example

See Also