We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Syncfusion Ribbon throwing exception

It would appear that we cannot bring one particular tab into view.  This tab is significantly larger than the other ribbons, though utilizes drop downs to remain manageable. Any recommendations? 

It throws - Unable to cast object of type 'System.Windows.Controls.ColumnDefinition' to type 'System.Windows.Controls.Border'.

Here is the stack:

   at Syncfusion.Windows.Tools.Controls.RibbonBar.OnApplyTemplate()

   at System.Windows.FrameworkElement.ApplyTemplate()

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at Syncfusion.Windows.Tools.Controls.RibbonLayoutPanel.TryToCollapse(Int32 i, RibbonBar element, Size size, Size constraint)

   at Syncfusion.Windows.Tools.Controls.RibbonLayoutPanel.MeasureAll(Size constraint, Size& size)

   at Syncfusion.Windows.Tools.Controls.RibbonLayoutPanel.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.ContextLayoutManager.UpdateLayout()

   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)

   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()

   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)

6 Replies

MS Mariappan S Syncfusion Team June 22, 2015 10:32 AM UTC

Hi Justin,

Thank you for contacting Syncfusion Support.

We are unable to reproduce the reported issue. Could you please share your current Syncfusion product version you have used and also in which scenario you have face this issue? It would be very helpful for us to resolve your problem earlier.

Please let us know if you need further assistance.

Mariappan S.

AL Aliaa February 27, 2022 09:16 PM UTC

i want to know how u solve this issue 

SM Subashini Mahendran Syncfusion Team February 28, 2022 03:07 PM UTC

Hi Aliaa,

We did not resolve the reported exception since we didn't get more information on this exception. If you are facing the reported exception at your end, can you please revert to us with replication steps or issue reproducible sample or video. So, it will be helpful to prompt the solution on further.


Subashini M.

AL Aliaa March 1, 2022 04:03 PM UTC

We have prepared a demo for this case, Please find the attachment below.

Attachment: DemoForRibbonLayoutPanelIssue_1a19b1c9.rar

MS Mahalakshmi Sugumar Syncfusion Team March 2, 2022 03:16 PM UTC

Hi Aliaa,

We can reproduce “Null reference exception” at our end as shown in the attached image. Also, we have confirmed the reported scenario is a defect and logged a report for the reported scenario “Null reference exception thrown when setting IsAutoSizeFormEnabled property as true in Ribbon”. We will provide the patch for the reported issue on 7th March 2022.

You can track the status of this defect using the following feedback link:


Please let us know if you are facing any other exception. It will help us to proceed further.


Mahalakshmi S

MS Mahalakshmi Sugumar Syncfusion Team March 3, 2022 06:54 PM UTC

Hi Aliaa,

We have fixed the reported issue - “Null reference exception thrown when setting IsAutoSizeFormEnabled property as true in Ribbon”. Please find the patch file from the following location:     


Recommended approach – exe will perform automatic configuration                  

Please find the patch setup here:        



Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment                                   

Please find the patch assemblies alone from:                  



Please find the NuGet from the below location:          

Installation Directions:           

This patch should replace the files "Syncfusion.Tools.WPF” under the following folder.           

$system drive: \ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\[TargetFramework]           

E.g.: $system drive:\Program Files\Syncfusion\Essential Studio\\precompiledassemblies\\4.6 

To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you must manually copy and paste them to the preferred location, or you must run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.           



Please note that we have created this patch for version specifically to resolve the issues reported in this forum #119434. If you have received other patches for the same version for other products. This fix will be included in our Volume 1 release which will be available in March 2022.

Please let us know if you need any further assistance.

Mahalakshmi S

Live Chat Icon For mobile
Up arrow icon