How does one “disable” a button in WPF using the MVVM pattern?

Just bind the IsEnabled property of the Button to CanClose:

<Button IsEnabled="{Binding CanClose}"/>

Leave a Comment