KMC
KMC

Reputation: 20046

What is the equivalent of a Button Click in DevExpress?

In WPF, a button and a click event is:

<Button Click="Btn_Click" />

private void Btn_Click(object sender, RoutedEventArgs e)
{
   ....
}

In DevExpress, according to the documentation, I would guess the equivalent would be:

<dxb:BarButtonItem ItemClick="Btn_Click" />

private event ItemClickEventHandler Btn_Click(Item sender, RoutedEvent e)
{
   ....
}

But it is not compiling. I would guess it is very easy but I cannot find any example in the documentation.

Upvotes: 0

Views: 1307

Answers (1)

Thomas Levesque
Thomas Levesque

Reputation: 292465

The second parameter of the handler should be a ItemClickEventArgs:

private void Btn_Click(object sender, ItemClickEventArgs e)
{
   ....
}

Upvotes: 1

Related Questions