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
Post a Comment