c# - How can I create a WPF behavior that refers to multiple controls? -


i have scrollviewer contains large image. want user able hold mouse down , drag image move side side, , i'm trying implement using behavior. problem mouse down event doesn't seem able fire on scrollviewer when user presses down on mouse button. code behind, handle event on image, behavior attached 1 control don't know how approach issue.

what approach should use create system.windows.interactivity.behavior attaches both objects?

the mouseleftbuttondown event raised fine on scrollviewer. problem scrollviewer handling event (e.handled = true). , since handled behavior not receive it.

depending on doing might able use previewmouseleftbuttondown event instead. way doesn't matter if scrollviewer handle since behavior receiving first.

you try use drag&drop events directly. i'm not sure if work.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -