-
-
Save icebeam7/dc9326497714340a16149d5d4bba7395 to your computer and use it in GitHub Desktop.
ViewModels/BaseViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
namespace ICTalkMobileApp.ViewModels | |
{ | |
public class BaseViewModel : INotifyPropertyChanged | |
{ | |
public event PropertyChangedEventHandler PropertyChanged; | |
protected void OnPropertyChanged([CallerMemberName] string propertyName = "") | |
{ | |
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); | |
} | |
private bool isBusy; | |
public bool IsBusy | |
{ | |
get => isBusy; | |
set { isBusy = value; OnPropertyChanged(); } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment