internal void RaiseItemSwipe(ItemSwipeEventArgs e) { if (ItemSwipe != null) { ItemSwipe(this, e); } }
internal void RaiseItemSwipe(ItemSwipeEventArgs e) { switch (e.Direction) { case SwipeListDirection.Left: RaiseSwipeCommand(ItemLeftCommand, e.SwipedItem); break; case SwipeListDirection.Right: RaiseSwipeCommand(ItemRightCommand, e.SwipedItem); break; } if (ItemSwipe != null) ItemSwipe(this, e); }
private void SwipeListView_ItemSwipe(object sender, ItemSwipeEventArgs e) { var item = e.SwipedItem as EmailObject; if (item != null) { if (e.Direction == SwipeListDirection.Left) { item.Unread = !item.Unread; } else { (Resources["Emails"] as EmailCollection).Remove(item); } } }
/// <summary> /// Handles swipping the control left (delete) and right (rename) /// </summary> /// <param name="sender"></param> /// <param name="e">The GroupContent that was swipped</param> public async void itemSwiped(object sender, Universal.UI.Xaml.Controls.ItemSwipeEventArgs e) { var groupContent = e.SwipedItem as GroupsContent; if (groupContent != null) { if (e.Direction == SwipeListDirection.Left) { await changeGroupNameAsync(groupContent); } else { deleteGroup(groupContent); } } }
internal void RaiseItemSwipe(ItemSwipeEventArgs e) { switch (e.Direction) { case SwipeListDirection.Left: RaiseSwipeCommand(ItemLeftCommand, e.SwipedItem); break; case SwipeListDirection.Right: RaiseSwipeCommand(ItemRightCommand, e.SwipedItem); break; } if (ItemSwipe != null) { ItemSwipe(this, e); } }
internal void RaiseItemSwipe(ItemSwipeEventArgs e) { if (ItemSwipe != null) ItemSwipe(this, e); }
private void GroupsBox_ItemSwipe(object sender, Universal.UI.Xaml.Controls.ItemSwipeEventArgs e) { viewModel.itemSwiped(sender, e); }