Hide Group header in Grouped ListView - xamarin

I'm displaying a GroupedList view, and have both enabled the group header and jumplist. I've tried to hide the Group header, but so far with no luck. This property I want to hide is GroupDisplayBinding. If I don't set it, a default of ToString for my Item is displayed. I just want it gone, as a regular list only with the jump option enabled.
A little update: I searched some samples and what I want is a TableView with and indexed list as displayed here: https://developer.xamarin.com/guides/ios/user_interface/tables/part_2_-_populating_a_table_with_data/#Adding_an_Index
Best regards

Xamarin.Forms listview allows you to specify your own layout for the listview group via GroupHeaderTemplate property. You can use this layout to keep the header content empty.
Have a look at Customizing Listview Grouping
If you want to define the group header layout in code you will have to create a new subclass of ViewCell and build the layout. See an example at Enhancing Xamarin.Forms ListView with Grouping Headers

Related

CollectionViews inside a tab switching component inside a ScrollView - Xamarin Forms

I am trying to implement the following layout structure using Xamarin Forms components:
- ScrollView (which displays a sticky header when scrolling)
- Title & body text
- Tab Switching Component
- Tab 1: CollectionView of items (load new items on ItemThresholdReached)
- Tab 2: CollectionView of items (")
The desired behaviour is that when scrolling down either of the CollectionViews, the content above this (the text and tab switcher) should scroll out of view and be hidden by the sticky header. Upon scrolling back to the top of the collection view, it would scroll to the top of the page, revealing the content at the top and the sticky header would hide. Essentially, the Collection View and header content should scroll together as one scrolling view. With the above structure, the scroll isn't working because these CollectionViews are inside of an outer ScrollView.
I am using Collection View elements here because I am utilising the ItemThresholdReachedCommand to efficiently load more elements to the collection. The length of the collections will potentially be in the hundreds so performance is also important.
So far I have tried the following:
I set the header content as the header element of the Collection Views so that they would scroll as one. However this doesn't work because the header content is shared by both collection views, including the tab switcher component which wraps both Collection Views. Therefore this content cannot be placed into Collection View header elements.
I have also tried using a BindableLayout instead of CollectionView but this has none of the built-in events that Collection View has and I have read that Bindable Layout shouldn't be used for larger lists of items.
If anyone has any advice on the best way of trying to achieve this, it would be much much appreciated. At this point it feels impossible in Xamarin Forms!

Selecting NSCollectionView Item

I need to create a photo gallery and each individual photo when selected will have some options to edit. For this am using NSCollectionView to set up the grid layout. I followed this guide and the basic grid layout is setup.
Now I need to enable selection of these images. So that when I click on them it gets a check mark, and later I need to enable batch processing of these images(copy/delete ...).
I am stuck here, and couldnt get any info on how to handle selection and later get the selected items from the grid ?

Navigate to specific group header in grouped GridView (win store app)

I want to make something like when I'm choosing some item from a ComboBox so that my grouped GridView that located into ScrollViewer will nevigate/focus to the group (or to its header) that has the group-header with the string value of the chosen item in the ComboBox.
Any ideas? mayble some games with TabIndex property or something like that?
Why do you host Grid View inside of ScrollViewer? GridView has it is own ScrollViewer.
When you will start to use ScrollViewer inside of GridView (just move Grid View out of ScrollViewer) - you just need to use ScrollIntoView method to navigate to the item.

How to get a textbox for an item in longlist selector for WP7

I am developing a wp7 application using longlist selector. My requirement is to change font of only some items on the screen. For this i need to get the text box control for the item.
The textbox is a part of item template of the long list selector.
The items to be modified change with the scroll.
I tried using the Link event. here i can find the contentpresenter for the item being added. But how can i get the textbox from the content presenter.
Any one can help with this? pls.
Instead of searching for the TextBlock that gets generated - provide your own in the ItemTemplate/DataTemplate and set its font through binding to an item in the ItemsSource. You can use a converter to determine the font or provide the font directly in each item of the bound collection.

how we use pageindiactor in pivot

i want to use page indicator control in pivot ,to show the user which page they attract.but i also want to add some functionality in page indicator to select the page with the help of page indicator like android .but i don't know how it is possible.if u know then send me a link or example
You could create the ui yourself and update the current page indicator by using the selectedIndex property. There are controls created by other developers, like here, which you could use. But for complete control over the functionality, I'd suggest you create your own or use the source code provided by other developers (see above link) to get ideas.
To make the implementation clearer:
You can add the same UIElement containing a list of dots equal to the number of pivots, and using the SelectedIndex property you can fill the corresponding dot. Add gesture events to this element and handle it to change the SelectedIndex appropriately.

Resources