Reputation: 20046
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
Reputation: 292465
The second parameter of the handler should be a ItemClickEventArgs
:
private void Btn_Click(object sender, ItemClickEventArgs e)
{
....
}
Upvotes: 1