How to create a custom WinForms action type with a custom control (BarCheckItem), associated with it
This example demonstrates how to represent an action via BarCheckItem. For this purpose, a SimpleAction descendant ( CheckableSimpleAction ) is implemented, because it is required to save the checked state of the action. To represent a custom action in a UI, the BarCheckItemCheckableSimpleActionControl is used. To bind an abstract action to its UI representation, a custom CheckableSimpleActionBinding is created. The binding operation is performed by CustomActionControlController.
Note that in most cases, it is not required to implement a custom action and action item. It is sufficient to customize the existing action control as described in the How to: Customize Controls Associated with an Action topic.
- How to create a custom action type with a custom control in Web (ASP.NET webForms)
- XAF Blazor - Implement a custom Action type (ASP.NET Core Blazor Server)
Files to look at:
CheckableSimpleAction.cs
CustomActionControlController.cs
CheckableSimpleActionBinding.cs
BarCheckItemCheckableSimpleActionControl.cs
(you will be redirected to DevExpress.com to submit your response)