I have found some posts about this, but no solution.
I have attached a litte sample to show you: It's as simple as possible, I have placed a explorer bar with one group and 4 items and try to get the double click event.
Any ideas why the event is not fired?
Regards
Markus
Hi again,
I have updated my test project to newest version (14.2.20142.2034). The event will still not be fired. It seems to be a bug.
Look at the two event handlers I have defined: even for double clicks on a item the scond handler below is called:
private void ExplorerBar_ItemDoubleClick( object sender, Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e ) { // never called } private void ExplorerBar_DoubleClick( object sender, EventArgs e ) { // called on double click either on explorerbar OR or item double click }
Do I miss something?
Hello,
The ItemDoubleClick Event only applies to UltraExplorerBarItems with a style of '2 - StateButton'. Please refer the following online help article for the same:
<http://help.infragistics.com/doc/WinForms/2014.2/CLR4.0/?page=Infragistics4.Win.UltraWinExplorerBar.v14.2~Infragistics.Win.UltraWinExplorerBar.UltraExplorerBar~ItemDoubleClick_EV.html>
So, you will need to set the UltraExplorerBarItems style as StateButton.
private void Form1_Load(System.Object sender, System.EventArgs e){ this.UltraExplorerBar1.ItemSettings.Style = Infragistics.Win.UltraWinExplorerBar.ItemStyle.StateButton;}
You could handle the MouseDown or MouseClick event and use the control's ItemFromPoint method to get the item that was clicked, and then call the same code you are calling from the ItemClick handler for that item. You can use the following code:
private void ultraExplorerBar1_MouseDown(object sender, MouseEventArgs e) { UltraExplorerBarItem uExpItem = ultraExplorerBar1.ItemFromPoint(e.Location); if (uExpItem == null) return;
MessageBox.Show("Load Item clicked - " + uExpItem.Text);}
Let me know if you have any questions.