Hello,
setting e.Cancel to true in ActiveGroupChanging does not always prevent the selected group to change:
while setting a breakpoint in ActiveGroupChanging to debug (to inspect e.Cancel value), everything is working correctly ... :)
the ActiveGroupChanged event is canceled correctly!
as soon as I remove the breakpoint I can switch groups to whatever I like, console output is always "true" for e.Cancel.
any help?
Blue
Hello Blue,
This event is intended to be used with Style of control set to 'OutlookNavigationPane'. You could use GroupCollapsing or GroupExpanding for other styles.
Please do not hesitate to ask if I misunderstood you.
Hello Boris,
I already tried GroupExpanding or GroupCollapsing, both arent even firing when clicking on a group.
My UltraExplorerBar is set to "OutlookNavigationPane" style.
My UltraExplorerBar style of groups is set to "ControlContainer"
NavigationPaneExpansionMode is "OnButtonClick".
I intent to do some validation before the user can switch the ExplorerBar group and then cancel the event if validation fails.