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
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
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
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.
Thanks a lot
Amit Saraf
- 5 Replies
- 4 Participants
-
AS Amit Saraf
- Jun 5, 2026 01:06 PM UTC
- Jul 10, 2026 05:40 AM UTC