Menu is a control that enables you to hierarchically organize elements associated with the commands and event handlers. Menu is an ItemsControl, so it can contain a collection of any object type such as string, image, or panel. The hierarchical inheritance of Menu class is as follows −
Given below are the most commonly used properties of Menu.
|Sr.No.||Property & Description|
Given below are the most commonly used events of Menu.
|Sr.No.||Event & Description|
The following example contains three menu options with some menu items. When the user clicks an item, the program updates the title. Here is the XAML code −
Here is the events implementation in C#.
When you compile and execute the above code, it will produce the following output −
We recommend that you execute the above example code and try the other properties and events of Menu class.
Windows Presentation Foundation(WPF) Related Interview Questions
|C#. NET Interview Questions||ASP.NET Interview Questions|
|Advanced Dot Net Interview Questions||OOPS Interview Questions|
|MVC Framework Interview Questions||MVVM Interview Questions|
|Windows Communication Foundation (WCF) Interview Questions||Dot Net Framework Interview Questions|
|Advanced C# Interview Questions||XAML Interview Questions|
|Win32 Api Interview Questions||Basic C Interview Questions|
|Asp Dot Net Mvc 4 Interview Questions||Windows Workflow Foundation Interview Questions|
Windows Presentation Foundation(WPF) Related Practice Tests
|C#. NET Practice Tests||ASP.NET Practice Tests|
|OOPS Practice Tests||Windows Communication Foundation (WCF) Practice Tests|
|Dot Net Framework Practice Tests|
Windows Presentation Foundation(wpf) Tutorial
Windows Presentation Foundation(wpf)
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.