-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
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
- Set command to a button (
button.SetCommand(ViewModel.TestCommand)) - Add binding to enabled property (
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
- Version with issue: 4f060ee
- Affected Platforms: iOS, Android
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels