This is a migrated thread and some comments may be shown as answers.

RadRibbonView size issue when passed through Managed AddIn Framework Pipeline

1 Answer 43 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Usman asked on 24 Sep 2019, 02:38 PM


I'm working on an Managed Addin Framework (MAF) based application in which the RibbonView is returned from the AddIn's appdomain to the AddIn-Host appdomain. The issue I'm facing is that when the RibbonView is converted to and from FrameworkElement/INativeHandleContract, it loses most of the functionality. On the host side, collapsing RibbonView doesn't properly resize. The ribbon view collapsed but some other control is taking the place and the controls below that do not get resized to occupy the whole space. I want the controls which are below the ribbon to occupy the space, as shown in the images attached.

The issue can be reproduced easily by following code sample:

RadRibbonView ribbon = new RadRibbonView();
            ribbon.MinimizeButtonVisibility = Visibility.Visible;
            ribbon.MinimizedChanged += Ribbon_MinimizedChanged;

            var tab = new RadRibbonTab();
            tab.Header = "Tab 01";

            var group = new RadRibbonGroup();
            group.Header = "Group 01";

            var command = new RadRibbonButton();
            command.Text = "Hello";




            var contract = FrameworkElementAdapters.ViewToContractAdapter(ribbon);

            var control = FrameworkElementAdapters.ContractToViewAdapter(contract);

            presenter.Content = control;


And here is the sample xaml:

            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />

        <ContentPresenter x:Name="presenter" />


1 Answer, 1 is accepted

Sort by
Dilyan Traykov
Telerik team
answered on 27 Sep 2019, 10:54 AM

Hi Usman,

Thank you for the provided images and code snippets.

I tested this behavior with a standard MS Expander as well and observed a similar result. I've prepared a small sample project to demonstrate this. This leads me to believe that this issue is not specific from the controls from the UI for WPF suite, but is rather a limitation of the framework.

I can suggest forwarding your inquiry to the MSDN forums to get adequate help as such scenarios go out of the scope of the support services we provide.

If I can, however, assist you with anything else that does fall within our scope, I'd be more than happy to do so.

Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
RibbonView and RibbonWindow
Asked by
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question