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 Boris,
ok I understand. It's interesting how styles also influence behavior, argh ;)
Thanks for clearing this up. As I said earlier, it's working great with SelectedGroupChanging.
It seems that this behavior is right because the OutlookNavigationPane style allows groups to be selectable so in this scenario the ActiveGroupChanging will be canceled but the SelectedGroupChanging will also fire and would have to be canceled if the you did not want the SelectedGroup to change on a click. So you could use the SelectedGroupChanging event.
Hello Blue,
I also believe so. We are working to ensure that we have a solution or an explanation for the event that you wanted to use in the first place.
Please do not hesitate to contact us if you need any additional assistance.
SelectedGroupChanging does the job very well. Thanks for this advice.
I will have a look at the support case, since I guess ActiveGroupChanging should behave simular.
I created the following case for you: 'CAS-89652-PK3B40' and will update you through it.
Meanwhile you could try using SelectedGroupChanging as a temporary workaround.