Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TileViewModel
public class TileViewModel : MvxViewModel
{
private readonly ITileService _tileService;
public TileViewModel(ITileService tileService)
{
_tileService = tileService;
}
private string _color;
public string Color
{
get { return _color; }
set { _color = value; RaisePropertyChanged(() => Color); }
}
public IMvxCommand UpdateState
{
get
{
return new MvxCommand(async () =>
{
await _tileService.UpdateStateAsync(this);
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment