我目前正在摆弄我的一个使用MahApps Metro 库的旧 wpf 应用程序的外观。我被Controls:ToggleSwitch 困住了,我可以在其中绑定除命令之外的几乎所有内容。当我尝试如下绑定命令时,
<Controls:ToggleSwitch Header="Start Playing" OnLabel="Stop" OffLabel="Play" 
    IsChecked="{Binding ToggleRecordCommand}"
    CommandParameter="{Binding}"  /> 
我收到一个错误,例如;
Error   62  A TwoWay or OneWayToSource binding cannot work on the read-only property 'ToggleRecordCommand' of type 'RecorderApp.View.MainWindowViewModel'.
它还告诉我没有CommandParameter。我将如何将操作绑定到此?