How to trigger ViewModel command for a specific button events

后端 未结 3 1671
清酒与你
清酒与你 2020-12-05 12:52

How can a command on a ViewModel be invoked by a specific event of a button, such as MouseDoubleClick?

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-05 12:58

    you can use attached command behaviors

    => http://geekswithblogs.net/HouseOfBilz/archive/2009/08/21/adventures-in-mvvm-ndash-generalized-command-behavior-attachments.aspx

提交回复
热议问题