I would like to add a contextmenu in the oulook bar. How can I do that?
I figured out how to add it, how do I determine which group bar I am in when the user right clicks. I add the groups in code behind based on the results of a query.
In all likelihood you would have to walk up the visual/logicaltree but can you post a sample of what you are doing so I see? If you just want to be able to get to the group from the menuitem click then perhaps you can walk up the logical tree of the menu item in the click until you get to the ContextMenu and then use the PlacementTarget of the ContextMenu to determine the group to act on. ContextMenu usage really isn't specific to this control so you may find more information on the MS WPF newsgroups as well.