| FocusManagerFocus Method |
Moves focus to a control.
Namespace: DigitalRune.Game.UIAssembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax public bool Focus(
UIControl control
)
Public Function Focus (
control As UIControl
) As Boolean
public:
bool Focus(
UIControl^ control
)
member Focus :
control : UIControl -> bool
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