WPF菜单与工具栏


    
        
            
                
                    
                        
                        
                        
                    
                    
                
                
                    
                    
                
            
            
                
                
                
            
            
        
    
namespace WpfApplication4
{
    /// 
    /// MainWindow.xaml 的交互逻辑
    /// 
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void miExit_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("你确定要退出吗?");
        }
    }
}



你可能感兴趣的:(WPF)