Method | Description | |
---|---|---|
Add ( |
Adds the current control to the current focus context
|
|
ClearFocus ( ) : void |
Clears the focus, but preserves the focus index
|
|
FocusManager ( ) : System |
Initializes the focus manager
|
|
Pop ( ) : void |
Pops the current focus context. This should be called if you've implemented a modal dialog like experience and your dialog has just closed. Pop() will automatically restore focus on the previous context.
|
|
Push ( ) : void |
Pushes a new focus context onto the stack. This is useful, for example, when a dialog appears above all other controls and you want to limit focus to the dialog to acheive a modal affect. You must remember to call pop when your context ends.
|
|
Remove ( |
Removes the control from all focus contexts
|
|
TryMoveFocus ( bool forward = true ) : bool |
Tries to move the focus forward or backwards
|
|
TryRestoreFocus ( ) : bool |
Tries to restore the focus on the given context
|
|
TrySetFocus ( |
Tries to set focus on the given control.
|
Method | Description | |
---|---|---|
CycleFocusIndex ( bool forward ) : bool |
public Add ( |
||
c | The control to add | |
return | void |
public Remove ( |
||
c | The control to remove | |
return | void |
public TryMoveFocus ( bool forward = true ) : bool | ||
forward | bool | If true then the manager will try to move forwards, otherwise backwards |
return | bool |
public TrySetFocus ( |
||
newFocusControl | the control to focus. | |
return | bool |