Skip to content

Update view after update bind property in ViewModel #335

@mosflex

Description

@mosflex

Hi,
I'm updating my view by editing the binding value from ViewModel. When I push a button, I want to run an activityIndicator, but nothing appears.

<ActivityIndicator IsRunning="{Binding IsRunning}" IsVisible="{Binding IsRunning}" />
public bool IsRunning { get => isRunning; set { isRunning = value; RaisePropertyChanged(); } }

The RaisePropertyChanged() is called.
It works well if I put Task.Delay(1) after updating IsRunning but It's not clean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions