wpf - How to detect a drop, regardless of where it occurred? -



wpf - How to detect a drop, regardless of where it occurred? -

i creating wpf application drag , drop functionality.

when drag initiated, colors of rectangles in window alter white greenish or reddish indicate ones valid drop targets.

i want revert colors of rectangles white whenever drop performed, regardless of drop occured.

i managed revert colors when drop occured on drop targets. can't find way same thing when drop performed elsewhere.

i've tried this, no luck me:

private sub meh(sender object, e querycontinuedrageventargs) handles dragsource.querycontinuedrag() if e.action = dragaction.cancel or e.action = dragaction.drop each r rectangle in rectangles.children r.fill = brushes.white next end if end sub

i made handler of mouseup event of window it. still no good.

can help me out here?

wpf vb.net

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -