Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 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;
        }
Exemplo n.º 4
0
 private void ActionListView_OnItemSwiping(object sender, ItemSwipingEventArgs e)
 {
     _isSwiping = true;
 }