Click or drag to resize
DigitalRuneFocusManagerFocus Method
Moves focus to a control.

Namespace: DigitalRune.Game.UI
Assembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax
public bool Focus(
	UIControl control
)

Parameters

control
Type: DigitalRune.Game.UI.ControlsUIControl
The control that should get the focus. (If control is , this method does nothing. Use ClearFocus to remove the focus from a control.)

Return Value

Type: Boolean
if the focus was moved; otherwise .
Remarks
Disabled or invisible controls cannot be focused. If the control is not itself Focusable, the method tries to focus a child control.
See Also