It seems you can set the focus of a focusscope with FocusManager.SetFocusedElement(Dependency object, IInputElement) but I was wondering how much of this is automated by wpf. If I click another control inside the same window, will the focus automatically be changed or do I need to manually do hit testing and then set the focused element?