ContextMenu Control in WPF

It is a menu which is associated with a particular control or area or window. It appears as a popup control by right clicking on that control or window. These are the commands which are associated to that particular item and provides some additional functionality. It is like when you right click on notepad it shows you certain options.

Usually any Framework Element can have Context Menu, Actually Context Menu is a ItemsControl which means it can have a collection of items, objects of any type like image, string, panel etc.

Context Menu class provides a number of properties to define its behaviour and position.

Tip : ContextMenu is automatically shown in a popup control, This is the default behaviour and cannot be changed.




This article is in updation process.. Sorry for Inconvenience..!!