'Keyboard focus vs logical focus in WPF

What is the difference by Keyboard focus and logical focus in WPF? and how WPF focus is different from the focus in winform ?



Solution 1:[1]

I found a good series of blog posts on WPF focus.

  1. Part1ItsBasicallyFocus

  2. Part2ChangingWPFFocusInCode

  3. Part3ShiftingFocusToTheFirstAvailableElementInWPF

They are all good to read, but the 1st part specifically deals with logical vs keyboard focus. The 3rd part shows a good way to set focus to a UI element in a UserControl.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Drew Noakes