Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
ActiveAppearance and ClickEvent in UltraExplorerBar
posted

I am using 2008v2. I have set the ExplorerBar's ActiveAppearance and I also handle its ClickEvent. I have noticed that I can make an item's ActiveAppearance happen (click to the right of the item itself, not on its center) and it will assume the associated ActiveAppearance but the event is not triggered.

It's very confusing. The ActiveAppearance tells the user that he has clicked that Item when in fact the event was not triggered.

            Infragistics.Win.Appearance activeItemAppearance = new Infragistics.Win.Appearance();

            activeItemAppearance.BackColor = System.Drawing.Color.FromArgb(192, 255, 192);

            ultraExplorerBar1.ItemSettings.AppearancesSmall.ActiveAppearance = activeItemAppearance;

Is it supposed to work this way? 

 

Thanks, Lars

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    Assuming that by 'ClickEvent' you are referring to the ItemClick event (and not, for example, the 'Click' event), I was not able to reporduce the behavior you describe here with a simple test. Using the 'ExplorerBar' setting for the Style property, anytime an item was activated the ItemClick event followed on the release of the mouse button.

    If you are by chance referring to the control's Click event, this is correct behavior, since the Click event (which is inherited from the System.Windows.Forms.Control class) fires without regard to the area of the control that was clicked, and has no bearing on any item's active state.

Children