Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PreviewKeyDown/KeyUp not tunnelling
Message
De
06/03/2010 11:46:37
 
 
À
06/03/2010 05:54:32
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01452829
Message ID:
01452925
Vues:
30
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform