First Use Xafari FrameWork and have question



I first use Xafari framework and have question.

I do as Xafari Documentation:Check Action. Getting Started 

  • I create a new application using DevExpress v15.2 XAF Solution Wizard and create  a business objects  named:CheckActionObjects using template:DeveExpress v15.2 ORM Persistend Object for XAF.
  • Add XafariModuleto Module Project.
  • Add XafariWinModuleto Windows Forms Application Project.
  • Add new ViewController to Module Project, name it CheckActionObjectsViewController. Replace the autogeneratedcs file content with the following code.....

But the  checkAction behavior is same as simpleAction when I run the application.

I don't know why?

Can you help me?


UserDescriptionPosted On
Sasha (Xafari Support)Client

Hello nickcole,

Thank you for contacting us.

At first you can discover our Demo Center (Start \ Xafari Framework v15.2... \ Demo Center). CheckAction located in Demo Center \ Feature Center \ Actions.
Additionally you can see Source Code for Demo Center on the path C:\Users\Public\Documents\Xafari Framework v15.2... Demos.

Let us know if you need further assistance or have additional questions.
Best regards,


I do as Xafari Documentation:Check Action. Getting Started
The attacment is the step which I do.
Please check my step and tell me the wrong step.


Your demo Center work fine.
I do from scratch follow your documentation, but the CheckAction work as simpleAction.


Attached file is my solution.

Attached files:
Sasha (Xafari Support)Client

Hi nickcole,

CheckAction is a SimpleAction class descendant and the CheckAction have additional CheckedChanged event. CheckAction extend the base class functionality by supporting two specific states: checked and unchecked.

The documentation shows how to connect the CheckAction and how to use CheckedChanged event. We have published screenshots for CheckAction from FeatureCenter demo, where the following options are used from DevExpress: How to: Create a Custom WinForms Standard Template, How to: Include an Action to a Detail View Layout.

And you can implement the following method to CheckActionObjectsViewController.cs to work correctly:

private bool _markChecked = true;
protected void CheckUncheckChanged(CheckAction objCheckAction)
objCheckAction.Checked = _markChecked;
_markChecked = !_markChecked;
private void checkAction_Execute(object sender, EventArgs e)
var checkUncheck = (CheckAction)sender;

We hope you find this information helpful.
If you need additional assistance let us know about it.

Thanks, Sasha.



× This ticket is closed.

Write US