I have a simple menu in my WPF applications and no event want to fire. I tried both ways, either double clicking the corresponding event at the "events" windows besides properties, or give a manual event to the XAML. Neither work. I can't even fire a normal click event to the menu itself nor the menu items!!! My XAML code is as follow:
<Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="438" Width="658" Name="winMain" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:my="clr-namespace:Tutorial_Keeper_Real"><Grid Height="410" Name="grdMain" Width="646"><Grid.RowDefinitions><RowDefinition Height="25" /><RowDefinition /></Grid.RowDefinitions><DockPanel Name="docPanMain" LastChildFill="False"><Menu Height="34" Name="Menu1" Width="648"><MenuItem Header="File" Name="mnuFile"><MenuItem Header="New Tutorial" Name="mnuItemNewTutorial"/></MenuItem><MenuItem Header="Search" Name="mnuSearch"><MenuItem Header="Search Tutorial" /></MenuItem><MenuItem Header="Edit" Name="mnuEdit"><MenuItem Header="Cloud Services"><MenuItem Header="Sky Drive" /></MenuItem></MenuItem><MenuItem Header="Help" Name="mnuHelp" /></Menu></DockPanel></Grid></Window>I know I can add the event at the XAML and then program the behavior at code behind. I just don't know what possible could go wrong. I'm not that noob >_>. I'm using Visual Basic Express 2010. Please help!!