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

WinForms Host is Not Rendering if The RadRibbonView Panel is Collapsible

Environment

Product Version 2023.2.718
Product RadRibbonView for WPF

Description

The content of RadRibbonView is not visible when the control is minimizable and WindowsFormsHost is used.

Solution

To host WindowsFormsHost content in a WPF Window or Popup, you should disable its transparency, otherwise the WindowsFormsHost content won't get displayed.

private void RadRibbonView_Loaded(object sender, RoutedEventArgs e) 
{ 
    var ribbonView = (RadRibbonView)sender; 
    var popup = ribbonView.ChildrenOfType<Popup>().FirstOrDefault(x => x.Name == "TabContentPopup"); 
    if (popup != null) 
    { 
        popup.AllowsTransparency = false; 
    } 
} 
In this article