This is a migrated thread and some comments may be shown as answers.

Exception on drop window into a docking region...

3 Answers 74 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Tomas
Top achievements
Rank 1
Tomas asked on 18 Jul 2011, 09:15 AM
Hallo,
we have a serious problem with RadDocking in Telerik WPF Q2 2011.
We're using Prism (v. 4) as a composite framework. When I try dock an document window inside the Prism's module and I drag it from the original position & drop it e.g. into left dock panel, the exception is raised (see the call stack). Please help...
Thank you.
 Tomas.

-- Call stack  --
   MS.Internal.Controls.InnerItemCollectionView.AssertPristineModelChild(Object item)
       PFCP.Infrastructure.Client.Shell.EXE: N 15946004
   MS.Internal.Controls.InnerItemCollectionView.Insert(Int32 index, Object item)
       PFCP.Infrastructure.Client.Shell.EXE: N 00040
   System.Windows.Controls.ItemCollection.Insert(Int32 insertIndex, Object insertItem)
       PFCP.Infrastructure.Client.Shell.EXE: N 00150
   Telerik.Windows.Controls.RadDocking.OnDropContainer(RadSplitContainer container, Point globalMousePosition)
       RadDocking.cs: line 0347, column 06, IL 0175
   Telerik.Windows.Controls.RadDocking.DropWindow(ToolWindow toolWindow, Point globalMousePosition)
       RadDocking.cs: line 0269, column 04, IL 0007
   Telerik.Windows.Controls.Docking.ToolWindow.OnDragEnd(Point globalMousePosition, Boolean isCancel, Boolean isResize)
       ToolWindow.cs: line 0420, column 03, IL 0042
   Telerik.Windows.Controls.WindowBase.Telerik.Windows.Controls.InternalWindow.IDragAware.OnDragEnd(Point globalMousePosition, Boolean isCancel, Boolean isResize)
       WindowBase.cs: line 0998, column 03, IL 0009
   Telerik.Windows.Controls.InternalWindow.WindowHostBase.OnDragEnd(Point globalMousePosition, Boolean isCancel, Boolean isResize)
       WindowHostBase.cs: line 0079, column 03, IL 0022
   Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.OnWindowPositionUpdateEnded(Point mousePosition)
       ChromelessWindowHelper.cs: line 0313, column 05, IL 0035
   Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.HandleSizeMoveEnd(IntPtr hwnd, IntPtr wParam, IntPtr lParam, Boolean& handled)
       ChromelessWindowHelper.cs: line 0483, column 04, IL 0011
   Telerik.Windows.Controls.InternalWindow.ChromelessWindowHelper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       ChromelessWindowHelper.cs: line 0563, column 05, IL 0026
   System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       PFCP.Infrastructure.Client.Shell.EXE: N 00205
   MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       PFCP.Infrastructure.Client.Shell.EXE: N 00352
   MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       PFCP.Infrastructure.Client.Shell.EXE: N 00151
   System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       PFCP.Infrastructure.Client.Shell.EXE: N 00090
   MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       PFCP.Infrastructure.Client.Shell.EXE: N 00071
----------------------------------------------------------------------------------------------------
 
End log, timestamp: 2011-07-18T10:03:26.8990299+02:00
===========================================================

3 Answers, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 21 Jul 2011, 11:24 AM
Hi Tomas,

RadDocking control and RadPaneGroup do not support ItemsSource property. I would suggest you to use their Items property instead. You can also check this blog post to see an example of using RadDocking control toghether with Prism. I have attached an upgraded version for Prism (v. 4) of the example.

Hope this helps.

Kind regards,
Ivo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Tomas
Top achievements
Rank 1
answered on 21 Jul 2011, 11:55 AM
Hi Ivo,
I'm not sure, that this is our problem - we have on the shell level one "ContentControl" and each module has it's own master view, where is somewhere inside visual tree used RadDocking...

However - finally we found the problem - the problem is in the used themes - if we use for example theme "Windows7" or "Summer", the application is crashed. With other themes it's everything working fine..

BTW: if you try docking functionality in the Q2.712 demo application with the specified themes, the problem is occured too - Try Docking/Theming section & theme Windows 7. - You have got the same problem there.. Thanks.
 David.
0
Ivo
Telerik team
answered on 21 Jul 2011, 02:41 PM
Hello Tomas,

The issue with "Window7" and "Summer" themes is known and it is fixed. The fix will be released with the next internal build - at the beginning of the next week.

Hope this helps.

Best wishes,
Ivo
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Docking
Asked by
Tomas
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Tomas
Top achievements
Rank 1
Share this question
or