Beispiel #1
0
        public async Task EditItemAsync(TableGridItem item)
        {
            object ItemViewModel = null;

            if (!string.IsNullOrEmpty(this.Control.ItemViewModelType))
            {
                ItemViewModel = System.Activator.CreateInstance(Type.GetType(this.Control.ItemViewModelType), item.Data);
            }
            ;

            var page = (TableGridPage)System.Activator.CreateInstance(Type.GetType(this.Control.ItemPage), this, item.Data, ItemViewModel);

            await this.Control.Navigation.PushModalAsync(page);
        }
Beispiel #2
0
 public void DeleteItem(TableGridItem item)
 {
     this.Control.Items.Remove(item.Data);
     TableGrid.OnItemsSourceChanged(this.Control, this.Control.Items, this.Control.Items);
 }