DevExpress/DX_WPF

[DX_WPF] DelegateCommand()

딸기우유중독 2024. 3. 14. 14:41

 

Prism DelegateCommand 와

DevExpress DelegateCommand의 

Parameter 사용의 차이가 조금 있음.

 

Prism DelegateCommand 는  CanExcute로 프로퍼티를 지정할 수 있는데 

DevExpress DelegateCommand 는 CanExcute 을 함수로만 지정 가능?!

DevExpress DelegateCommand 에서 bool 값을 전달인자로 보낼 수 있는 부분은 useCommandManager 인데

Command를 자동으로 업데이트 칠지 말지에 대한 부분. CanExcute의  bool 이 아님!!

 

 

 


 

https://docs.devexpress.com/CoreLibraries/DevExpress.Mvvm.DelegateCommand.-ctor(System.Action-System.Boolean)

 

DelegateCommand(Action, Boolean) Constructor | Cross-Platform Class Library | DevExpress Documentation

DelegateCommand(Action, Boolean) Constructor Initializes a new instance of the DelegateCommand that can always be executed. Namespace: DevExpress.Mvvm Assembly: DevExpress.Mvvm.v23.2.dll NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation Declaratio

docs.devexpress.com

 

 


 

Case1

 

 

Case2

 

728x90