Caliburn Micro Guard Methods not evaluating on property change

后端 未结 3 1969
旧时难觅i
旧时难觅i 2021-02-18 23:08

I\'ve been playing with the Caliburn Micro MVVM framework and am having some problems with guard methods.

I have a view model:

public class MyViewModel :         


        
3条回答
  •  余生分开走
    2021-02-18 23:43

    If you dont need CanExecute to be method, because you wont use parameters. Then you can rewrite it as property with standard notification and only getter. And call its PropertyChanged when you asume result of the getter changed.

提交回复
热议问题