Skip to content

Commit f9ee007

Browse files
Merge branch 'master' into dependabot/nuget/JumpListView/JumpListView/JumpListView.UWP/Microsoft.NETCore.UniversalWindowsPlatform-6.0.6
2 parents 404cb10 + 79551ab commit f9ee007

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

.github/workflows/gitleaks.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
- name: Install the report tool packages
3333
if: steps.gitleaks.outcome != 'success'
3434
run: |
35-
nuget install "Syncfusion.Email" -source "https://nexus.syncfusion.com/repository/nuget-hosted/"
36-
dir $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1
37-
dotnet $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1/Email.dll "citeam@syncfusion.com" "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE"
35+
nuget install "Syncfusion.Email" -source ${{ secrets.NexusFeedLink }} -ExcludeVersion
36+
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1
37+
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
38+
3839
exit 1

JumpListView/JumpListView/JumpListView/Helper/Behavior.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ private void ListView_Loaded(object sender, ListViewLoadedEventArgs e)
4343
//Creating new label based on the group header key value after loading
4444

4545
var groupcount = this.ListView.DataSource.Groups.Count;
46+
var items = ListView.DataSource.Groups.ToList<GroupResult>().OrderBy(o=>o.Key);
4647
for (int i = 0; i < groupcount; i++)
4748
{
4849
label = new Label();
49-
GroupResult group = ListView.DataSource.Groups[i];
50+
GroupResult group = items.ElementAt(i);
5051
label.Text = group.Key.ToString();
5152
indexPanelGrid.Children.Add(label, 0, i);
5253
var labelTapped = new TapGestureRecognizer() { Command = new Command<object>(OnTapped), CommandParameter = label };

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
# How-to-create-jump-list-using-Xamarin.Forms-listview
1+
# How to add a jump list with xamarin.forms listview
22

3-
You can create jump list using Xamarin.Forms ListView by tap on the indexed letter group key) and scroll to the respective group [GroupHeaderItem](https://help.syncfusion.com/cr/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.GroupHeaderItem.html) by passing group key index in [ScrollToIndex](https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.LayoutBase~ScrollToRowIndex.html) method like contact list. This article explains you how to create jump list with group key and scroll to tapped item.
3+
You can add jump list using Xamarin.Forms ListView by tap on the indexed letter (group key) and scroll to the respective group [GroupHeaderItem](https://help.syncfusion.com/cr/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.GroupHeaderItem.html) by passing group key index in [ScrollToIndex](https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.LayoutBase~ScrollToRowIndex.html) method like contact list. You can refer following article explains you how to create jump list with group key and scroll to tapped item.
44

5+
https://www.syncfusion.com/kb/11021/how-to-add-a-jump-list-with-xamarin-forms-listview
6+
7+
Creates panel to shows the group key as indexed vertically.
58
```
69
<ContentPage xmlns:syncfusion="clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms" >
710
<ContentPage.Content>
@@ -27,7 +30,7 @@ You can create jump list using Xamarin.Forms ListView by tap on the indexed lett
2730
</ContentPage.Content>
2831
</ContentPage>
2932
```
30-
Creating new label with index letter from the Key value of GroupHeader after loading.
33+
Creates and populate the index panel with index labeled from the Group key.
3134

3235
```
3336
ListView.Loaded += ListView_Loaded;
@@ -46,7 +49,7 @@ private void ListView_Loaded(object sender, ListViewLoadedEventArgs e)
4649
}
4750
}
4851
```
49-
On tapping the group key value loaded in IndexLabelGrid, you can scroll the listview to the respective group by comparing all GroupHeader’s Key value like below.
52+
On tapping the group key value loaded in the index panel, you can scroll the listview to the respective group by comparing all GroupHeader’s Key value like below.
5053

5154
```
5255
private void OnTapped(object obj)
@@ -72,3 +75,6 @@ private void OnTapped(object obj)
7275
previousLabel = label;
7376
}
7477
```
78+
**OutPut**
79+
80+
![JumpList](https://github.com/SyncfusionExamples/how-to-add-a-jump-list-with-xamarin.forms-listview/blob/master/Screenshots/JumpList.png)

Screenshots/JumpList.png

58.6 KB
Loading

0 commit comments

Comments
 (0)