WPF/MVVM: Disable a Button's state when the ViewModel behind the UserControl is not yet Initialized?

前端 未结 2 1271
臣服心动
臣服心动 2020-12-31 14:57

I have a DocumentListView.Xaml with a ListBox and 3 Buttons.

Behind that UserControl sits a DocumentListViewModel with 3 Buttons and their Command Property bound to

2条回答
  •  说谎
    说谎 (楼主)
    2020-12-31 15:33

    Or you can use a Style for the button to disable:

    
    

提交回复
热议问题