WPF - Is it possible to assign an event in a Style?

Specifically I want all PasswordBox's using a Style to have the same static KeyDown event handler - would it be possible to somehow set this in the Style they are using rather than setting it on each PasswordBox? (which I am having to do in code behind at the moment as they all point to the same static handler)..

7
задан Lara 18 May 2011 в 10:06
поделиться