private void ControlRemovedFromVisualTree(ConsoleControl c) { if (ControlRemovedFromVisualTreeRecursive(c)) { FocusManager.TryRestoreFocus(); } }