RadTabControl + ElementHost + AllowDragReorder = NullReference

2 posts, 0 answers
  1. Daniel Zhe
    Daniel Zhe avatar
    2 posts
    Member since:
    Apr 2013

    Posted 07 May 2013 Link to this post

    Hello!

    I've found a issue in RadTabControl using it with a Windows Forms application.

    I have a very simple project that can reproduce this error and I can send it if you guys want that.

    Steps to Reproduce:
    1. Create a WPF UserControl with an RadTabControl and some RadTabItems
    2. Change "AllowDragReorder" to "true"
    3. Create a empty Windows Forms application, with one form with a ElementHost inside
    4. Put the UserControl that you've created in Step 1 inside the ElementHost
    5. Start the application
    6. Try to drag some of the tabs and catch the exception :)

    My setup:
    Windows 7 x64, .NET 4.0, VS2012, WPF controls version Q1 2013. This issue also happens with 2012 Q3.

    Error:
       at Telerik.Windows.Controls.RadTabControl.IsDropPointUnsafe(FrameworkElement destinationContainer, FrameworkElement sourceContainer, Point dragPoint) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TabControl\RadTabControl.DD.cs:line 220
       at Telerik.Windows.Controls.RadTabControl.SwitchItems(FrameworkElement destinationContainer, FrameworkElement sourceContainer, Point dragPoint, IEnumerable enumerable) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TabControl\RadTabControl.DD.cs:line 149
       at Telerik.Windows.Controls.RadTabControl.SwitchItems(FrameworkElement destinationContainer, FrameworkElement sourceContainer, Point dragPoint) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TabControl\RadTabControl.DD.cs:line 138
       at Telerik.Windows.Controls.RadTabControl.OnDragOverHandler(Object sender, DragEventArgs e) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TabControl\RadTabControl.DD.cs:line 101
       at Telerik.Windows.DragDrop.DragEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragEventArgs.cs:line 202
       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 Telerik.Windows.DragDrop.IInputElementExtensions.RaiseEvent(DependencyObject d, RoutedEventArgs routedEventArgs) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DependencyObjectExtensions.cs:line 82
       at Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnDragEventHandler(Object sender, DragEventArgs e) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragDropManager.cs:line 1737
       at Telerik.Windows.DragDrop.DragDropManager.DelegateHelper.OnOver(Object sender, DragEventArgs e) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragDropManager.cs:line 1812
       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.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint)
       at System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDragOver(Int32 dragDropKeyStates, Int64 point, Int32& effects)


    Thank you!
  2. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 10 May 2013 Link to this post

    Hi Daniel,

    Thank you for reporting this issue to us. I have followed your steps to created a sample project and managed to reproduce the issue with 2013 Q1 binaries. In addition I have logged an item in our public issue tracking system, where you could track or vote for issue resolution via following link: http://www.telerik.com/support/pits.aspx#/public/silverlight/14990. Also I have increased your Telerik points +1000.

    All the best,
    Hristo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top