Posted 25 May 2017
Link to this post
My question concerns the functionality of a WPF telerk
I need to create the following functionality when a tabitem
(tab) from a tabcontrol is involved in a drag and drop operation. The functionality
is as follows. If the dragged tabitem’s drop
location is within the area of a tab located on the same tabcontrol where
dragged tabitem originated from , then the dragged tabitem will be position as
a tab in the tabcontrol where the drop location is. If the drop location is
anywhere else on the screen a new process will started, and this new process
will be display a tabcontrol populated with the dragged tabitem as a tab.
I was told a Telerik
WPF tabcontrol already has the ability to position the dragged tabitem in the
same tabcontrol it originated from if the drop location is with in the area of
one of the tabcontrol’s tabs. I also was informed that the Devexpress WPF has
the ability to create a new tabcontrol populated with the dragged tabitem as a
tab in the same application if the drop location is elsewhere.
If this is all true does Telerik have available any sample project
code that accomplished this I could download, and run in Visual Studio?
If so then I am looking for an easy way to how to override
the original drop operation handler in the sample code above, and change the
functionality if the drop location is in the elsewhere area mentioned above. So
the override handler would let the original drop handler be called if the drop
location is on one of the tabs of the tabcontrol that the dragged tabitem originated
from. If the drop location is anywhere
else on the screen then the original drop handler would not be called ,and I would
add code to perform the functionality I am seeking.
I am sure other people have ask the same type of question of
overriding the drop handler. So is there any source code available that shows
the adding of a route drag event handler that acts the override event handler( the
handler which gets called before the original one?).