private void DropboxFilesListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            ListViewItem selectedItem = e.ItemData as ListViewItem;

            viewModel.DownloadPdfStream(selectedItem.FileName);
            popupLayout.IsOpen = false;
        }
Example #2
0
        void Handle_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            var tempListView = sender as Syncfusion.ListView.XForms.SfListView;

            for (int i = 0; i < 8; i++)
            {
                var tempItem = (listView.ItemsSource as ObservableCollection <MenuCollectionModel>)[i];
                if ((e.ItemData as MenuCollectionModel) != tempItem)
                {
                    tempItem.FontColor = Color.FromHex("#8e8e92");
                }
            }

            var temp = e.ItemData as MenuCollectionModel;

            temp.FontColor = Color.FromHex("#007ad0");
            navigationDrawer.ContentView = new Archive_Default(temp.MessageContent, (e.ItemData as MenuCollectionModel).MenuItem).Content;
            if (Device.RuntimePlatform == Device.iOS || Device.RuntimePlatform == Device.Android)
            {
                navigationDrawer.IsOpen = false;
            }
            else
            {
                navigationDrawer.ToggleDrawer();
            }
        }
Example #3
0
 private async void ListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
 {
     if (e.ItemData is Company)
     {
         await Navigation.PushAsync(new CompanyDetailsPage(((Company)e.ItemData).Id.Value));
     }
 }
Example #4
0
        async void ListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            //            if (e.ItemData == viewModel.InboxInfo[0])
            //                viewModel.InboxInfo.Remove(e.ItemData as ListViewInboxInfo);
            if (!(e.ItemData is GenericRequestObject item) || item.ProviderId == null || item.ProviderId == "")
            {
                return;
            }
            switch (item.Type)
            {
            case DataType.Artiste:
                await Navigation.PushAsync(new MyArtisteDetailPage(new MyArtistDetailsViewModel(item)));

                break;

            case DataType.Album:
                await Navigation.PushAsync(new MyAlbumDetailPage(new MyAlbumDetailsViewModel(item)));

                break;
            }


            // Manually deselect item
            listView.SelectedItem = null;
        }
        void Handle_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            SelectedItem = e.ItemData as SerializationModel;
            //if (SelectedItem.ImageName == "CreateNew")
            //{
            var item = SelectedItem;

            if (SelectedItem.SelectedImageVisibility == "false")
            {
                SelectedItem.SelectedImageVisibility = "false";
                if (Device.RuntimePlatform.ToLower() == "ios")
                {
                    Navigation.PushAsync(new NavigationPage(new SerializationContentPage(item, listView, model)));
                }
                else if (Device.RuntimePlatform.ToLower() == "uwp")
                {
                    Navigation.PushAsync(new SerializationContentPage(item, listView, model));
                }
                else
                {
                    Navigation.PushModalAsync(new SerializationContentPage(item, listView, model));
                }
                ClearItems();
            }
        }
Example #6
0
 private async void ListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
 {
     if (DocumentsList.SelectedItems.Count == 0 && e.ItemData is OcrDocument document && BindingContext is DocumentViewModelBase vm)
     {
         await Navigation.PushAsync(new DocumentDetailPage(vm.SessionHandler, document.Id));
     }
 }
        private void ListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            var group = ListView.DataSource.Groups[0];

            ListView.ExpandGroup(group);
            ListView.CollapseGroup(group);
        }
 private void ListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
 {
     if (popupLayout != null)
     {
         popupLayout.Dismiss();
     }
 }
Example #9
0
 private void ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
 {
     if (TapItemCommand.CanExecute(e))
     {
         TapItemCommand.Execute(e);
     }
 }
 /// <summary>
 /// Determines when an item is tapped in the list view
 /// </summary>
 /// <param name="sender">Sender object.</param>
 /// <param name="e">Item tapped event arguments.</param>
 private void OnItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
 {
     (this.listView.BindingContext as ContactListViewModel).SelectedItem = e.ItemData as ContactInfo;
     this.listView.Navigation.PushAsync(new DataFormPage()
     {
         BindingContext = this.listView.BindingContext, Title = "Contact Form"
     });
 }
Example #11
0
        void Listview_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            var item = e.ItemData as MessageModel;

            item.Expanded = item.Expanded ? false : true;

            listview.SelectedItem = null;
        }
Example #12
0
        /// <summary>
        /// 点击
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void OnListViewItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            ArticlesDto baseMessageEntity = e.ItemData as ArticlesDto;
            var         messagDetailPage  = new ArticlesDetailsPage(baseMessageEntity);
            //await NavigationHelper.PushAsync(Navigation, messagDetailPage, false);

            await Navigation.PushAsync(messagDetailPage);
        }
Example #13
0
        private async void ListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            await Navigation.PushAsync(new ColumnDetailPage
            {
                BindingContext = e.ItemData as Columns
            });

            ((SfListView)sender).SelectedItem = null;
        }
Example #14
0
 private void OnItemTappped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
 {
     if (!_isSwiping)
     {
         if (e.ItemData != null && this.ItemTappedCommand != null && this.ItemTappedCommand.CanExecute(e.ItemData))
         {
             this.ItemTappedCommand.Execute(e.ItemData);
         }
     }
 }
Example #15
0
 /// <summary>
 /// Invoked when tapping the listview item.
 /// </summary>
 /// <param name="sender">The Sender</param>
 /// <param name="e">ItemTappedEventArgs</param>
 private void BindableListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
 {
     if (this.Command == null)
     {
         return;
     }
     if (this.Command.CanExecute(e.ItemData))
     {
         this.Command.Execute((e.ItemData));
     }
 }
        private void listView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            var item = e.ItemData as TileInfo;

            if (item.ImageName == "Original")
            {
                image.ApplyImageEffect(ImageEffect.None, 0);
            }
            else if (item.ImageName == "Limestone")
            {
                image.ApplyImageEffect(ImageEffect.None, 0);
                image.ApplyImageEffect(ImageEffect.Hue, -147);
                image.ApplyImageEffect(ImageEffect.Saturation, 84);
                image.ApplyImageEffect(ImageEffect.Brightness, -16);
                image.ApplyImageEffect(ImageEffect.Contrast, 14);
            }
            else if (item.ImageName == "Old")
            {
                image.ApplyImageEffect(ImageEffect.None, 0);
                image.ApplyImageEffect(ImageEffect.Hue, -80);
                image.ApplyImageEffect(ImageEffect.Saturation, -30);
            }
            else if (item.ImageName == "Midnight")
            {
                image.ApplyImageEffect(ImageEffect.None, 0);
                image.ApplyImageEffect(ImageEffect.Hue, 23);
                image.ApplyImageEffect(ImageEffect.Saturation, 68);
                image.ApplyImageEffect(ImageEffect.Brightness, -25);
            }
            else if (item.ImageName == "Mint")
            {
                image.ApplyImageEffect(ImageEffect.None, 0);
                image.ApplyImageEffect(ImageEffect.Hue, -75);
                image.ApplyImageEffect(ImageEffect.Brightness, -10);
                image.ApplyImageEffect(ImageEffect.Contrast, 16);
            }
            else if (item.ImageName == "Gold")
            {
                image.ApplyImageEffect(ImageEffect.None, 0);
                image.ApplyImageEffect(ImageEffect.Hue, -179);
                image.ApplyImageEffect(ImageEffect.Saturation, 70);
                image.ApplyImageEffect(ImageEffect.Brightness, -12);
                image.ApplyImageEffect(ImageEffect.Contrast, 48);
            }
            else if (item.ImageName == "Majestic")
            {
                image.ApplyImageEffect(ImageEffect.None, 0);
                image.ApplyImageEffect(ImageEffect.Hue, 123);
                image.ApplyImageEffect(ImageEffect.Saturation, 50);
                image.ApplyImageEffect(ImageEffect.Brightness, -40);
                image.ApplyImageEffect(ImageEffect.Contrast, 20);
            }
        }
Example #17
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            object eventArgs = null;

            Syncfusion.ListView.XForms.ItemTappedEventArgs eventArg = null;
            if (value is Syncfusion.ListView.XForms.ItemTappedEventArgs)
            {
                eventArg  = value as Syncfusion.ListView.XForms.ItemTappedEventArgs;
                eventArgs = eventArg.ItemData;
            }

            return(eventArgs);
        }
 private void SfListViewEx_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
 {
     if (e.ItemData != null)
     {
         if (e.ItemData.GetType() != typeof(GroupResult))
         {
             if (this.ItemTappedCommand != null && this.ItemTappedCommand.CanExecute(e.ItemData))
             {
                 ItemTappedCommand.Execute(e.ItemData);
             }
         }
     }
 }
Example #19
0
        private void listView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            OrderDetailPageNoButtons newPage = new OrderDetailPageNoButtons();

            newPage.BindingContext = e.ItemData;
            newPage.order1         = (e.ItemData) as OrderDetails;

            Navigation.PushModalAsync(newPage);



            listView.SelectedItem = null;
        }
Example #20
0
        private void ListView_OnItemTapped(object sender, ItemTappedEventArgs e)
        {
            if (!(e.ItemData is Colors item))
            {
                return;
            }

            var index = ListView.DataSource.DisplayItems.IndexOf(item);

            _viewModel.DoUpdate(item);

            ListView.LayoutManager.ScrollToRowIndex(index, Syncfusion.ListView.XForms.ScrollToPosition.Center, true);
        }
        private void CustomerListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            selectedCustomer = e.ItemData as Customer;

            customerNameEntry.Text   = selectedCustomer.CustomerName;
            customerPhoneEntry.Text  = selectedCustomer.CustomerPhone;
            customerPhone2Entry.Text = selectedCustomer.CustomerPhone2;
            customerEmailEntry.Text  = selectedCustomer.CustomerEmail;
            streetEntry.Text         = selectedCustomer.CustomerStreetAddress;
            cityAddressEntry.Text    = selectedCustomer.CustomerCity;
            stateAddressEntry.Text   = selectedCustomer.CustomerState;
            zipAddressEntry.Text     = selectedCustomer.CustomerZipCode;
        }
        private void Bindable_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            if (Command == null)
            {
                return;
            }

            object parameter = Converter.Convert(e, typeof(object), null, null);

            if (Command.CanExecute(parameter))
            {
                Command.Execute(parameter);
            }
        }
        // Event handler for watchlist stock being pressed
        private async void WatchlistView_ItemTapped(object sender, ItemTappedEventArgs e)
        {
            var selected = (Stock)e.ItemData;

            if (selected == null)
            {
                return;
            }

            // Push stock details page on top of stack
            await Navigation.PushAsync(new StockDetailsPage(selected));

            ((SfListView)sender).SelectedItem = null;
        }
Example #24
0
 private void ItemTapped(Syncfusion.ListView.XForms.ItemTappedEventArgs e)
 {
     tappedPinedInfo = e.ItemData as PinnedInfo;
     if (tappedPinedInfo.IsFavorite)
     {
         secondLV.DataSource.Filter = FilterDepartures;
         tappedPinedInfo.IsFavorite = false;
     }
     else
     {
         secondLV.DataSource.Filter = null;
         tappedPinedInfo.IsFavorite = true;
     }
     secondLV.DataSource.RefreshFilter();
 }
Example #25
0
        private void HorizontalSampleListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            int index;

            codeView.ScrollToAsync(code, ScrollToPosition.Start, false);
            if (horizontalSampleListView != null && e.ItemData != null)
            {
                index = horizontalSampleListView.DataSource.DisplayItems.IndexOf(e.ItemData);
                (horizontalSampleListView.LayoutManager as LinearLayout).ScrollToRowIndex(index - 1);

                if (fileContent != null && index != -1 && fileNames != null)
                {
                    code.Text = fileContent[index];
                }
            }
        }
Example #26
0
        async void ListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            //            if (e.ItemData == viewModel.InboxInfo[0])
            //                viewModel.InboxInfo.Remove(e.ItemData as ListViewInboxInfo);
            var item = e.ItemData as Artiste;

            if (item == null)
            {
                return;
            }

            await Navigation.PushAsync(new MyArtisteDetailPage(new MyArtistDetailsViewModel(item)));

            // Manually deselect item
            listView.SelectedItem = null;
        }
Example #27
0
        private void ListView_ItemTapped(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            var    itemIndex   = viewModel.contactsinfo.IndexOf(e.ItemData as ContactInfo);
            var    visibleLine = container.ScrollRows.GetVisibleLineAtLineIndex(itemIndex);
            double point       = listview.Y + visibleLine.ClippedOrigin + visibleLine.Size;

            popupLayout.PopupView.PopupStyle.BorderThickness = 1;
            if (point + 140 <= listview.Height + 25)
            {
                popupLayout.Show(listview.X, listview.Y + visibleLine.ClippedOrigin + visibleLine.ClippedSize + GetRelativeYPoint("top"));
            }
            else
            {
                popupLayout.Show(listview.X, point - GetRelativeYPoint("bottom"));
            }
        }
Example #28
0
        private async void GamesView_OnItemTapped(object sender, ItemTappedEventArgs e)
        {
            if (e.ItemData is Game game)
            {
                var refreshedGame = await _viewModel.GetGame(game.Id);

                if (refreshedGame.GameStatus < GameStatus.Started)
                {
                    var newGamePage = new NewGamePage(game.Id);
                    await Navigation.PushAsync(newGamePage).ConfigureAwait(true);
                }
                else
                {
                    await PlayGame(game.Id);
                }
            }
        }
Example #29
0
        private async void SfListView_OnItemTapped(object sender, ItemTappedEventArgs e)
        {
            if (e.ItemData is Topic topic)
            {
                foreach (var page in App.NewsPages)
                {
                    if (page.Title == topic.Name)
                    {
                        await Navigation.PushAsync(new TopicPage(topic.Name, page));

                        return;
                    }
                }

                await Navigation.PushAsync(new TopicPage(topic.Name));
            }
        }
Example #30
0
        private void backListTappedAsync(object sender, Syncfusion.ListView.XForms.ItemTappedEventArgs e)
        {
            Terms term = (Terms)e.ItemData;

            PageTermGlobal = term.Code;
            ObservableCollection <Data> obsData = new ObservableCollection <Data>();

            foreach (Data x in Globals.Dataset)
            {
                if (x.TermCode == PageTermGlobal)
                {
                    obsData.Add(x);
                }
            }
            listView.ItemsSource     = obsData;
            this.IsBackLayerRevealed = false;
            this.Title = term.Termname + " Overview";
        }