private void LogAction(string msg) { Device.BeginInvokeOnMainThread(async() => { var log = new Log() { Message = msg }; Items.Insert(0, log); await logTable.UpsertItemAsync(log); }); }