<p>For both .NET Winforms and Windows Presentation Foundation, if I have a text box that the user has just entered text into, and a button, if the user clicks the button the "LostFocus" event fires before the button click event fires.  However if the user uses a keyboard shortcut for the button (e.g. Button's text is "&amp;Button" or "_Button" and user performs Alt+B), then the "LostFocus" event fires after the button click event, which is less useful.</p>

<p>Do you know of reasonable workarounds?  We have various things that we want to occur in LostFocus before ButtonClick.</p>

What would happen if you did this first of all in the button handler? (or perhaps subclass the button and override OnClick to apply this logic "worldwide").
```
```
Button b = (Button) sender;
b.Focus();
```
```
Would that get round the issue?