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
930
Explorer Bar context menu event
posted

Hi,

The explorer bar has a context menu by default. One of the menu options is the ability to set the items to display in "Small images with text".

This is great, however which event can I use to know that this option has been actioned? Basically I want to know everytime the Group > Settings > Style has been changed.

Thanks

Ryan

  • 69832
    Verified Answer
    Offline posted

    You can use the PropertyChanged event to get a notification when any property value changes.

    Example:

    using Infragistics.Shared;
    using Infragistics.Win;
    using Infragistics.Win.UltraWinExplorerBar;

    this.explorerBar.PropertyChanged += new Infragistics.Win.PropertyChangedEventHandler(explorerBar_PropertyChanged);

    void explorerBar_PropertyChanged(object sender, Infragistics.Win.PropertyChangedEventArgs e)
    {
        PropChangeInfo pci = e.ChangeInfo.FindTrigger( null );
        if ( pci != null && pci.PropId is Infragistics.Win.UltraWinExplorerBar.PropertyIds &&
             (Infragistics.Win.UltraWinExplorerBar.PropertyIds)pci.PropId == Infragistics.Win.UltraWinExplorerBar.PropertyIds.Style )
        {
            bool stop = true;
        }

    }