www.pudn.com > SLICommand.zip > BtnViewModel.cs, change:2012-04-06,size:683b


using System; 
using System.Net; 
using System.Windows; 
using System.Windows.Controls; 
using System.Windows.Documents; 
using System.Windows.Ink; 
using System.Windows.Input; 
using System.Windows.Media; 
using System.Windows.Media.Animation; 
using System.Windows.Shapes; 
 
namespace SLICommand 
{ 
    public class BtnViewModel 
    { 
        // 设置两个命令 
        public ICommand BtnCommand { get; set; } 
        public ICommand BtnCommandTrue { get; set; } 
        public BtnViewModel() 
        { 
            //初始化两个命令值 
            BtnCommand = new btnCommand(false); 
            BtnCommandTrue = new btnCommand(true); 
        } 
    } 
}