This project has moved and is read-only. For the latest updates, please go here.
1
Vote

DataGridFilterColumnControl must be a child element of a DataGridColumnHeader.

description

Hi,
one user got this extension in our app with enabled filtering on all datagrids. Nothing special set up, just enabled using style.

Some special circumstances:
  1. DataGrids are placed in avalondock tab.
  2. There were some rdp access/local access switches before the exception, while the app was running (-> I expect this to be the main cause).
callstack:

at DataGridExtensions.DataGridFilterColumnControl.self_Loaded(Object sender, RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Any ideas?

Thanks, Ludek.

comments

tomenglert wrote Jul 1, 2016 at 11:47 AM

Not without seeing the actual visual tree and code :-(

tomenglert wrote Sep 10, 2016 at 7:26 AM

Do you have any additional info?
Otherwise I will close this.

luldek wrote Sep 13, 2016 at 5:29 PM

Hi, sorry for late answer.
Instead of connecting using rdp just try to switch theme in windows with application running.
apparently similar issue as the well-known-datepicker problem, that won't be solved by MS:

https://connect.microsoft.com/VisualStudio/feedback/details/622571/popup-visual-tree-can-not-be-generated-again-when-user-switch-the-theme