Class InputContextManager
Keeps the pushed input contexts, highest priority first, and offers each action to them in turn.
public sealed class InputContextManager
- Inheritance
-
InputContextManager
- Inherited Members
Constructors
InputContextManager()
Creates the manager, and makes it the current InputContextLocator when there is none.
public InputContextManager()
Methods
~InputContextManager()
Removes this manager from InputContextLocator when it is collected.
protected ~InputContextManager()
PopContext(InputContextHandle)
Removes the context that handle was returned for. An invalid or already
popped handle does nothing.
public void PopContext(InputContextHandle handle)
Parameters
handleInputContextHandle
PushContext(IInputContext)
Pushes a context, and returns the handle to pop it with. Throws when
context is null.
public InputContextHandle PushContext(IInputContext context)
Parameters
contextIInputContext
Returns
PushScoped(IInputContext)
Pushes a context, and returns a scope that pops it when disposed.
public InputContextScope PushScoped(IInputContext context)
Parameters
contextIInputContext