This project is read-only.

[Version 2.0] This Visual is not connected to a PresentationSource

Jul 25, 2012 at 11:22 PM

I have a LayoutAnchorGroup of two LayoutAnchorable controls. If I set one of the LayoutAnchorable controls' IsActive property to true and then switch views to a completely separate WPF control (away from the docking system), shortly after an exception occurs:

System.InvalidOperationException: This Visual is not connected to a PresentationSource. 
at System.Windows.Media.Visual.PointToScreen(Point point)   
at AvalonDock.Controls.TransformExtentions.PointToScreenDPI(Visual visual, Point pt)  
at AvalonDock.Controls.LayoutAutoHideWindowControl.get_IsWin32MouseOver()  
at AvalonDock.Controls.LayoutAutoHideWindowControl.<SetupCloseTimer>b__b(Object s, EventArgs e)  
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)   
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Jul 26, 2012 at 9:54 AM

could you please confirm you are using latest build? thx

Jul 26, 2012 at 6:20 PM

build: 2.0.1061.0 from June 29th.

Jul 31, 2012 at 1:58 AM

I have a test app that reproduces this issue if that would be helpful. (pretty much just your app with to tab items (dummy, and docking system).