Skip to content

DevExpress-Examples/XAF_how-to-create-a-custom-action-type-with-a-custom-control-barcheckitem-associated-with-it-e1977

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

See Also


Files to look at:
CheckableSimpleAction.cs
CustomActionControlController.cs
CheckableSimpleActionBinding.cs
BarCheckItemCheckableSimpleActionControl.cs

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

.NET, Frameworks (XAF & XPO), eXpressApp Framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published