the itemClick event will not be fired if style is set to "VisualStudio2005Toolbox".
and StyleChanged Event is never fired
Hello Thomas,
“ItemClick” event is not supposed to be fired for items which style is 'StateButton', which is the default item style for VSToolBox. The ItemCheckStateChanged event fires only for state buttons. So what you could do is to change the item style through the UltraExplorerBar.ItemSettings.Style property and the event will fire.
I also have created a sample, where I am avoiding the behavior which you mentioned. Test the sample and look at the event list in the right. You will see that every time when you click on the Item of UltraExplorerBar this action will be written as in item of the list. Also every time when you change the UltraExplorerBar Style you will see the new style in the list.
Please let me know if you have any further questions.
poor attitude. in my opinion it's a bug.
ItemClick is not supposed to fire for items whose style resolves to 'StateButton', which is the default item style for VSToolBox. The ItemCheckStateChanged event fires for state buttons. You can change the item style if you want via the UltraExplorerBar.ItemSettings.Style property.
The StyleChanged will not get fired when you change the Style property of the UltraExplorerBar, beacouse this event is inherited from System.Windows.Forms.Control. You could see more details about this event and when will be fired in MSDN:
http://msdn.microsoft.com/en-us/library/system.windows.forms.controlstyles.aspx
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.stylechanged.aspx
If you want to determine when UltraExplorerBar.Style property was chanced you could handle _PropertyChanged
event and write the following code there to handle the specific property Style:
if (e.ChangeInfo.PropId.ToString() == "Style")
{
// add custom code here
}
For the _ItemClick event will contact with our development team to check why is this happened. I have created for you a case (CAS-54578-THSYNF), so when I have more information about this behavior I will update you.
Thank you.