You can attach event handlers GotFocus, and LostFocusto visualize the root of your application (page). Since these events are routed events, they will bubble the tree of elements to the root every time the focus changes inside your page.
source
share