Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PreviewKeyDown/KeyUp not tunnelling
Message
From
06/03/2010 11:46:37
 
 
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01452829
Message ID:
01452925
Views:
29
>Hi,
>Thanks. That explains the behaviour. I'd tried setting Focusable=true but, alone, that didn't help....
>
>But the problem I have with the solution is that the KeyDown on the ScrollViewer doesn't now get handled. Well, I'll re-phrase that - the event does fire and gets marked as handled by the ScrollViewer but it doesn't perform any action (e.g. downarrow doesn't actually scroll down).....
>
>Maybe I need to rethink the approach. All I really need is for the ScrollViewer to handle it's navigation keys normally but for the 'inner' Canvas to handle (a limited number) of other keys.
>
>Any ideas?

I would just handle the key events on the ScrollViewer instead of the canvas. It's a lot simpler that way.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform