关于StackOverflow上的以下问题,我希望你能进行翻译。我正试图像这里描述的那样,为一个按钮设置触摸命令,但是没有任何反应。
在Android中使用MvvmCross触摸命令绑定<Button
xmlns:local="http://schemas.android.com/apk/res/Test.UI.Droid"
android:text="Office"
android:layout_column="0"
android:id="@+id/imageButton1"
local:MvxBind="{'Touch':{'Path':'ItemClickCommand'}}"/>
public IMvxCommand ItemClickCommand
{
get
{
return new MvxRelayCommand(() => this.RequestNavigate<Tests.OfficeViewModel>(true));
}
}
在上述代码中,我做错了什么,为什么它没有触发。