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)
i want to know how u solve this issue
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.
Regards,
Subashini M.
We have prepared a demo for this case, Please find the attachment below.
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:
https://www.syncfusion.com/feedback/33112/null-reference-exception-thrown-in-wpf-ribbon
Please let us know if you are facing any other exception. It will help us to proceed further.
Regards,
Mahalakshmi S
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:
V19.4.0.48
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\19.4.0.48\precompiledassemblies\19.4.0.48\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.
https://www.syncfusion.com/support/directtrac/patches
Disclaimer:
Please note that we have created this patch for version 19.4.0.48 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.
Regards,
Mahalakshmi S