System.ArgumentException ∞ is not a valid value for property From.

I'm getting following error when expanding / collapsing the last Children of Navigation Drawer.

Prepared a sample to demonstrate what I'm doing in my main project.

attached error screenshot for reference

Image_8074_1780664450702


Stack Trace 

   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) in System.Windows\DependencyObject.cs:line 756

   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value) in System.Windows\DependencyObject.cs:line 591

   at Syncfusion.UI.Xaml.NavigationDrawer.NavigationItemsView.UpdateCollapsedAnimation()

   at Syncfusion.UI.Xaml.NavigationDrawer.NavigationItem.OnIsExpandedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) in System.Windows\DependencyObject.cs:line 1151

   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) in System.Windows\DependencyObject.cs:line 1081

   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) in System.Windows\DependencyObject.cs:line 756

   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) in System.Windows\DependencyObject.cs:line 561

   at Syncfusion.UI.Xaml.NavigationDrawer.NavigationItem.set_IsExpanded(Boolean value)

   at Syncfusion.UI.Xaml.NavigationDrawer.NavigationItem.OnIsSelectedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) in System.Windows\DependencyObject.cs:line 1151

   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) in System.Windows\DependencyObject.cs:line 1081

   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) in System.Windows\DependencyObject.cs:line 756

   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) in System.Windows\DependencyObject.cs:line 561

   at Syncfusion.UI.Xaml.NavigationDrawer.NavigationItem.set_IsSelected(Boolean value)

   at Syncfusion.UI.Xaml.NavigationDrawer.NavigationItem.Border_MouseUp(Object sender, MouseButtonEventArgs e)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

   at System.Windows.Input.InputManager.ProcessStagingArea()

   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) in MS.Win32\HwndWrapper.cs:line 208

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) in MS.Win32\HwndSubclass.cs:line 221

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) in System.Windows.Threading\ExceptionWrapper.cs:line 88

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) in System.Windows.Threading\ExceptionWrapper.cs:line 33

   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) in System.Windows.Threading\Dispatcher.cs:line 959

   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) in MS.Win32\HwndSubclass.cs:line 193

   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) in System.Windows.Threading\Dispatcher.cs:line 1241

   at System.Windows.Application.RunDispatcher(Object ignore)

   at System.Windows.Application.RunInternal(Window window)

   at WpfApp1.App.Main()


hope this information is sufficient for resolving this error

Amit Saraf



Attachment: WpfApp1_23851168.zip

5 Replies

KA Karthick Arjunan Syncfusion Team June 11, 2026 02:47 PM UTC


Hi Amit Saraf,

We have confirmed the reported scenario is a defect and logged a report for the reported scenario, “NavigationDrawer throws ArgumentException when expanding or collapsing the last item with multiple SubItems”. We will fix this issue and include it in our NuGet release which is scheduled for 7th July 2026.

 

You can track the status of this defect using the following feedback link:  NavigationDrawer throws ArgumentException when expanding or collapsing the last item with multiple SubItems in WPF | Feedback Portal

 

Please let us know if you need any further assistance.

Note: The provided feedback link is private, and you need to log in to view this feedback.

 

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”

Regards,
Karthick Arjunan



VD Vimalraj Devadoss Syncfusion Team July 7, 2026 12:02 PM UTC

Amit Saraf,

The weekly NuGet release has been rescheduled to July 9, 2026, as the Volume 2 main release was completed on July 6, 2026
We will keep you informed once the NuGet package is released. 

We appreciate your understanding and patience.



SR Senthilkumar Ranganathan Syncfusion Team July 9, 2026 09:53 AM UTC

Amit Saraf,

We would like to let you know that Essential Studio Weekly NuGet packages (v34.1.30) have been published in nuget.org with the fix for the issue "NavigationDrawer throws ArgumentException when expanding or collapsing the last item with multiple SubItems". Please let us know if you have any concerns in this.
 
Root Cause Details:

The issue occurs when collapsing a navigation item that contains only one sub-item, causing the control to calculate an incorrect height value. This incorrect value is then applied during the collapse operation, resulting in the reported behavior. We have updated the control to properly handle this scenario and ensure the collapse operation works as expected.


AS Amit Saraf July 9, 2026 11:50 AM UTC

Thanks a lot

Amit Saraf



SR Senthilkumar Ranganathan Syncfusion Team July 10, 2026 05:40 AM UTC

Amit Saraf,

You're welcome. We hope the provided solution works for you. Please get back to us if you need any further assistance; we will be happy to help.

Loader.
Up arrow icon