xaml
c#
- <MenuItem IsCheckable="True" x:Name="_showSolutionExplorer" Header="Solution Explorer" Click="_showContent_Click"></MenuItem>
c#
- private void _showContent_Click(object sender, RoutedEventArgs e)
- {
- If ((sender as MenuItem).IsChecked)
- MessageBox.Show("MenuItem is checked");
- else
- MessageBox.Show("MenuItem is not checked");
- }
No comments:
Post a Comment
Note: only a member of this blog may post a comment.