private void ActionListView_OnItemSwiping(object sender, ItemSwipingEventArgs e)
 {
     var control = sender as RadListView;
     if (control == null) return;
     var item = e.Item as ActionItem;
     if (item == null) return;
     var bc = BindingContext as HomePageViewModel;
     if (bc == null) return;
     bc.IsUtilityAlertSwiped = item.ActionType == ActionItemType.UtilityAlert;
     bc.IsPrebillingSwiped = item.ActionType == ActionItemType.PrebillingApproval;
     bc.SwipedItem = item;
 }
 private void ActionListView_OnItemSwiping(object sender, ItemSwipingEventArgs e)
 {
     var control = sender as RadListView;
     if (control == null) return;
     var item = e.Item as ActionItem;
     if (item == null) return;
     var bc = BindingContext as HomePageViewModel;
     if (bc == null) return;
     bc.IsUtilityAlertSwiped = item.ActionType == ActionItemType.UtilityAlert;
     bc.IsPrebillingSwiped = item.ActionType == ActionItemType.PrebillingApproval;
     bc.SwipedItem = item;
 }
Exemple #3
0
        private void ActionListView_OnItemSwiping(object sender, ItemSwipingEventArgs e)
        {
            var item = e.Item as ActionItem;
            var bc   = BindingContext as MainPageViewModel;

            if (bc == null || item == null)
            {
                return;
            }
            var listView = sender as RadListView;

            if (listView != null)
            {
                listView.SelectedItems.Clear();
            }
            bc.IsUtilityAlertSwiped = item.ActionType == ActionItemType.UtilityAlert;
            bc.IsPrebillingSwiped   = item.ActionType == ActionItemType.PrebillingApproval;
            bc.SwipedItem           = item;
            _isSwiping = true;
        }
 private void ActionListView_OnItemSwiping(object sender, ItemSwipingEventArgs e)
 {
     _isSwiping = true;
 }