我在查看这里的代码。
/// <summary>
/// Returns the command that, when invoked, attempts
/// to remove this workspace from the user interface.
/// </summary>
public ICommand CloseCommand
{
get
{
if (_closeCommand == null)
_closeCommand = new RelayCommand(param => this.OnRequestClose());
return _closeCommand;
}
}
param => this.OnRequestClose()
中的param
指的是什么?
delegate(object param) { this.OnRequestClose(); }
,可能会更清晰。 - Davedelegate(object param) {...}
。 - Marc Gravell