This example demonstrates how to create a custom Action type with a toggle state.
The Action's implementation consists of the following parts:
- A
SimpleAction
descendant that stores the checked state of the Action (CheckableSimpleAction.cs). - The custom Action binding that binds an abstract Action to its UI representation (CheckableSimpleActionBinding.cs).
- The Controller that performs the binding operation. (CheckableSimpleActionController.cs)
- The Controller that creates
CheckableSimpleAction
objects in the UI. (SampleController.cs)