Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS MaterialButton ChangeCanExecute not working #119

Closed
ty3ukcom opened this issue Mar 14, 2019 · 0 comments
Closed

iOS MaterialButton ChangeCanExecute not working #119

ty3ukcom opened this issue Mar 14, 2019 · 0 comments
Labels
bug Something isn't working valid This issue/bug/feature request is valid

Comments

@ty3ukcom
Copy link

Describe the bug
Command.ChangeCanExecute() not working. Button just blinking (changing to proper state, and changing back again). On Android working well! Problem only on iOS.

To Reproduce
xaml:
<material:MaterialButton Text="Start" Command="{Binding MakeStartRecord}"/>
part of code:
` private Command _MakeStartRecord;
public Command MakeStartRecord
{
get
{
if (_MakeStartRecord == null)
{
_MakeStartRecord = new Command( ()=>{ isShowRecord = false; }, () => { return isShowRecord; });
}
return _MakeStartRecord;
}
}

    private bool _isShowRecord = false;
    public bool isShowRecord
    {
        get
        {
            return _isShowRecord;
        }
        set
        {
            _isShowRecord = value;
            OnPropertyChanged("isShowRecord");
            MakeStartRecord.ChangeCanExecute();
        }
    }`

Expected behavior
button must to change state to disabled

Smartphone (please complete the following information):

  • Device: iPhone6
  • OS: iOS 12.1.4
@contrix09 contrix09 self-assigned this Mar 15, 2019
@contrix09 contrix09 added bug Something isn't working valid This issue/bug/feature request is valid labels Mar 15, 2019
@contrix09 contrix09 removed their assignment Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working valid This issue/bug/feature request is valid
Projects
None yet
Development

No branches or pull requests

1 participant