Let me get to your questions one by one:
-Inside OnDragInitialize I fill my payload object, create a dragvisual, and set e.AllowedEffects = "All". Do I need to set e.Handled here for anything?
The e.Handled is used to distribute the events the same as any other routed event, so you have to set it if you have a multi level structure that supports drag and drop on multiple visual levels.
-Inside OnDragOver, I query the payload object for "even" integers and update the dragvisual based on the result. For disallowed drops, I set e.AllowedEffects = "None". Is that what I'm supposed to be doing to indicate the drop is not currently allowed? Does doing that stop the "OnDrop" and "OnDragDropCompleted" events from firing if the user drops the object? Am I supposed to do anythign with e.Handled here?
The statement for e.Handled here is the same. As to the Effects, you can use them to check in the Drop and DragDropCompleted event to check whether to execute the dedicated logic.
-Inside OnDrop, I query the dragvisual to see if the object can be dropped (should I be querying e.AllowedEffects instead or will it only fire when allowed?) and then perform the appropriate actions to manage the lists if allowed. Should I do something with e.Handled here?
Basically the previous answer contains the information you are looking for. As for the Handled, it's the same notation.
Hope this makes sense!
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>