You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SetCommand() extension methods manipulate with Enabled/IsEnabled properties of UI elements (whenever possible), which makes it impossible to. properly control Enabled state (with bindings, for. example)
Steps to Reproduce
Set command to a button (button.SetCommand(ViewModel.TestCommand))
Add binding to enabled property (this.Bind(() => ViewModel.IsEnabled, () => button.Enabled) where ViewModel.IsEnabled == false)
Expected Behavior
Button should be disabled
Actual Behavior
Button could still be enabled
Possible Fix
SetCommand should not manipulate Enabled state of the UI elements by default. Maybe it could be an additional feature, possibility to bind to ICommand.CanExecute()
Description
SetCommand() extension methods manipulate with Enabled/IsEnabled properties of UI elements (whenever possible), which makes it impossible to. properly control Enabled state (with bindings, for. example)
Steps to Reproduce
button.SetCommand(ViewModel.TestCommand)
)this.Bind(() => ViewModel.IsEnabled, () => button.Enabled)
whereViewModel.IsEnabled == false
)Expected Behavior
Button should be disabled
Actual Behavior
Button could still be enabled
Possible Fix
SetCommand should not manipulate Enabled state of the UI elements by default. Maybe it could be an additional feature, possibility to bind to
ICommand.CanExecute()
Basic Information
The text was updated successfully, but these errors were encountered: