You can check "Header Context Menu" WPF Demo for an example on how to attach a ContextMenu to the header cells. When OnMenuOpened event is raised, you can decide whether to show the menu or hide it.
Let me know how this works for you.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>