标签:aml readonly return 技术分享 name lap 处理 cte hid
1 private readonly Action _whattoExcute; 2 public ButtonCommand(Action whattoExcute)//根据实际情况设置方法参数 3 { 4 _whattoExcute = whattoExcute; 5 } 6 7 public bool CanExecute(object parameter) 8 { 9 return true; 10 } 11 public void Execute(object parameter) 12 { 13 _whattoExcute(); 14 }
1 if (PropertyChanged != null) 2 PropertyChanged(this, new PropertyChangedEventArgs(propertyName.Trim()));//propertyName.Trim()双向绑定的属性名
标签:aml readonly return 技术分享 name lap 处理 cte hid
原文地址:http://www.cnblogs.com/-A-0-0/p/6430033.html