In a WPF program I want to get the current (keyboard) Focus, store it and re-set it later.
To get the current focus right now I use:
DependencyObject
First, you should use Keyboard.ClearFocus() and write Keyboard.Focus("Your Input element") later.
Keyboard.ClearFocus()
Keyboard.Focus("Your Input element")
Keyboard.ClearFocus() clear your focus reference. After, you can do focus to whatever element of your interface.