MVVM EventToCommand not found

前端 未结 3 674
终归单人心
终归单人心 2021-01-24 21:12

Hi all I am trying to implement an on click effect in the items of a listbox but I keep getting this error:

The type \'cmd:EventToCommand\' was not found. Verify that yo

3条回答
  •  时光说笑
    2021-01-24 21:24

    Add GalaSoft.MvvmLight library to references. Then

    use this xmlns:cmd="clr-namespace:GalaSoft.MvvmLight;assembly=GalaSoft.MvvmLight" instead of xmlns:cmd="http://www.galasoft.ch/mvvmlight"

提交回复
热议问题