I am using a XamDataTree. When I click on any node in the tree and then click on WPF MenuItem, I get following error.
Not sure what is causing this error, looks like it has something to do with XamDataTree_MouseLeftButtonUp event.
I even tried to add the event handler for this event. Most of the times this event is not fired. Even when this event is fired I still get this error. It is a random behavior. Could you please help me out.
'System.Windows.Documents.Run' is not a Visual or Visual3D.
Stack Trace: at System.Windows.Media.VisualTreeHelper.GetParent(DependencyObject reference)
at Infragistics.Controls.Menus.XamDataTree.GetNodeFromSource(DependencyObject obj)
at Infragistics.Controls.Menus.XamDataTree.XamDataTree_MouseLeftButtonUp(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.ContentElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
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)
Hello,
I am just checking your progress on the issue.
If you require any further assistance please do not hesitate to ask.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics
www.infragistics.com/support
I have been investigating into your issue and I am not able to get the mentioned exception. I tried placing xamDataTree in the MenuItem and perform the mentioned actions, then I tried placing it outside the menu and I am still not receiving any errors. I am sending you my sample in order for you to check.
Would you please provide me with some information on the version that you are using and if possible send me some sort of sample, so I can further investigate the issue?
Thank you in advance.
Infragistics, Inc.