We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

TabItem -- possible to have menu pop up next to TabItem?

Thread ID:

Created:

Updated:

Platform:

Replies:

89037 Aug 17,2009 06:52 AM Aug 18,2009 09:47 AM WPF 2
loading
Tags: Tools
Christina Robin
Asked On August 17, 2009 06:52 AM

I was wondering if it's possible to have a small menu pop up right next to the new tab icon as seen in the attached pic. The idea here is that I want to offer the user a fast way to choose what kind of browser he wants to open up, rather than a generic new browser window.
Any help/details you can provide to help me to achieve this look would be greatly appreciated.





tabItem_53f3d1f5.gif

Christina Robin
Replied On August 18, 2009 04:28 AM

I figured out how to get the desired effect. I dynamically created a ContextMenu with menuItems which appears on mouse enter of the TabItem control.

Nikhil A [Syncfusion]
Replied On August 18, 2009 09:47 AM

Hi Christina,

Yes sure it can be done in the MouseEnter event of the TabItem as rightly pointed by you. But as we usually display context menus on right clicking on the elements, using MouseRightButtonUp event of the TabItem may also be considered(which is the generic way).

Please let us know if there are any other concerns.

Regards,
Nikhil
WPF Team.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;