BlackWaspTM

This web site uses cookies. By using the site you accept the cookie policy.This message is for compliance with the UK ICO law.

Windows Presentation Foundation
.NET 4.0+

WPF Base Classes - MenuBase

The eighty-second part of the Windows Presentation Foundation Fundamentals tutorial looks at the base class for the Menu and ContextMenu classes. The MenuBase class provides shared functionality for controls that allow the user to select from a set of options.

MenuBase

The MenuBase class is the base class for two of the menu controls provided by WPF. These are Menu and ContextMenu. MenuBase provides shared functionality for these controls, including properties that allow you to change the templates used to display each item in a menu.

As we haven't looked at control templates yet, the MenuBase class is included in this article for completeness only. Templates will be described later in the tutorial.

26 July 2014