WPF RelayCommand 含无参

引用

using System;
using System.Windows.Input;

namespace RelayCommand
{
   
    public class RelayCommand : ICommand
    {
   
        private readonly Action _execute;
        private readonly Func<bool> _canExecute;

        /// 
        /// Raised when RaiseCanExecuteChanged is called.
        /// 
        public event 

你可能感兴趣的:(C#,WPF,wpf)