You can add checkable menu items too. The WPF menu item exposes two properties to handle this. The IsCheckable property tells the menu item that it can handle check/uncheck options. When IsCheckable is set to True, it sets to the check/uncheck icon on an alternate click of that menu item.
You can also programmatically check/uncheck a menu item. Set its IsChecked property to True or False. Make sure to set IsCheckable="True". Let's add the following menu item, under the Edit menu:
<MenuItem Header="Save _settings on exit" IsCheckable="True" IsChecked="True" />