Ribbon checkbox affecting all opened explorers?

Add-in Express™ Support Service
That's what is more important than anything else

Ribbon checkbox affecting all opened explorers?
 
Ivaylo Mihaylov




Posts: 16
Joined: 2009-04-13
Hi,

As far as I can see when clicking on a ribbon menu checkbox while having more than one opened explorers checks/unchecks the checkbox for all instances.
Is there a way to set a ribbon checkbox to affect only the current open outlook explorer - as for example switching off and on the reading pane does?

Thanks
Posted 13 Jan, 2011 05:40:45 Top
Eugene Astafiev


Guest


Hi Ivaylo,

Yes, there is. Please try to use the following code:

private void adxRibbonCheckBox1_PropertyChanging(object sender, AddinExpress.MSO.ADXRibbonPropertyChangingEventArgs e)
{
   if (e.PropertyType == AddinExpress.MSO.ADXRibbonControlPropertyType.Pressed)
   {
       // clear the check box in other windows
       e.Value = false;                
    }
}
Posted 13 Jan, 2011 06:15:05 Top