Hi,
I have a Xamtabcontrol to which I dynamically add Tab items .
I need to display options for close tab, open in new window etc as options when they right -click on the header part of the TabItemEx.
How do I accomplish this?
Thanks!
Yep that worked....:) thanks!
Doesn't a standard context menu work for you?
TabItemEx tabItem = new TabItemEx();
tabItem.ContextMenu = this.FindResource("myContextmenu") as ContextMenu;
where :
<ContextMenu x:Key="myContextmenu">
<MenuItem Header="option 1"/>
<MenuItem Header="option 2"/>
</ContextMenu>