ControlFocusGiveFocus Method (UIElement, Action)DW.WPFToolkit Documentation
Gives the focus to the given UIElement with a Callback.

Namespace: DW.WPFToolkit.Helpers
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public static void GiveFocus(
	UIElement element,
	Action actionOnFocus
)

Parameters

element
Type: System.WindowsUIElement
The UIElement which has to get the focus.
actionOnFocus
Type: SystemAction
The callback which will be called when the control got the focus. It will called just before the element.Focus will called and the KeyboardFocus will be set.
Remarks

Giving the focus will be done using the target element dispatcher with the Render priority.
See Also

Reference