Enable button based on TextBox value (WPF)

后端 未结 6 1613
無奈伤痛
無奈伤痛 2021-02-06 02:53

This is MVVM application. There is a window and related view model class.

There is TextBox, Button and ListBox on form. Button is

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-06 03:06

    Things look much clearer now with the edits, thanks! This might be a stupid question (I'm somewhat tired of a long day's work), but why don't you bind to the command directly, instead of through a static resource?

    
    

提交回复
热议问题