I was trying to switch over to the DragDropManager today as the builds are now showing the previous manager is obsolete. (Moving to 2013 Q1 SP1).
It all looks straight forward as I use DragInitialize to setup for the drag and then watch GiveFeedback to see what DragDropEffects are being passed back by a valid drop target below what I am dragging (cursor).
Put simply, I can drag all over my app's window and see DragDropEffects.Copy always being returned. Except for a few limited cases, e.g., dragging over a standard WPF text box or the app title bar, or a window outside my app. In the latter cases, I get DragDropEffects.None - as expected!
I must be missing something. I have a custom class as the payload being dragged. I even set it so automatic conversions are not allowed. How are the window's in my app returning the DragDropEffects.Copy effect when they should have absolutely no idea as to how to interpret the payload?
Is it because I have mixed old and new drag/drop methodologies? Is this an error on my part, or the new implementation?
I really want the app to show the cursor associated wth DragDropEffects.None until it is over a target that recognizes the payload type.
Any suggestions appreciated.
It all looks straight forward as I use DragInitialize to setup for the drag and then watch GiveFeedback to see what DragDropEffects are being passed back by a valid drop target below what I am dragging (cursor).
Put simply, I can drag all over my app's window and see DragDropEffects.Copy always being returned. Except for a few limited cases, e.g., dragging over a standard WPF text box or the app title bar, or a window outside my app. In the latter cases, I get DragDropEffects.None - as expected!
I must be missing something. I have a custom class as the payload being dragged. I even set it so automatic conversions are not allowed. How are the window's in my app returning the DragDropEffects.Copy effect when they should have absolutely no idea as to how to interpret the payload?
Is it because I have mixed old and new drag/drop methodologies? Is this an error on my part, or the new implementation?
I really want the app to show the cursor associated wth DragDropEffects.None until it is over a target that recognizes the payload type.
Any suggestions appreciated.