Table of Contents

Interface ICancelableViewModel

Namespace
BSGameLib.UI
Assembly
BSGameLib.UI.dll

A view model whose screen can be backed out of with Escape.

public interface ICancelableViewModel

Remarks

Cancel() runs when Escape is pressed on the active view and no control used it first - an open dropdown closing itself, say, keeps the key, so one press does not both close the list and leave the screen. A view model that does not implement this ignores Escape, which is the right default for a screen with nowhere to go back to.

Methods

Cancel()

Backs out of the view. Called when Escape is pressed and no control used it first.

void Cancel()