summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue3086.xaml.cs
blob: 77dc6f11b13e4f4634e7245e7a34d07f99ce90bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;

using Xamarin.Forms;
using Xamarin.Forms.CustomAttributes;
using System.Collections.ObjectModel;

namespace Xamarin.Forms.Controls.Issues
{
	[Issue (IssueTracker.Github, 3086, "On iOS, groupheadertemplate is broken")]
	public partial class Issue3086 : ContentPage
	{
		public Issue3086 ()
		{
			#if APP
			InitializeComponent ();
			TestListView.ItemsSource = new ObservableCollection<GroupedItems> () {
				new GroupedItems ("Header 1") { "1.1", "1.2", "1.3" },
				new GroupedItems ("Header 2") { "2.1", "2.2", "2.3" },
				new GroupedItems ("Header 3") { "3.1", "3.2", "3.3" },
				new GroupedItems ("Header 4") { "4.1", "4.2", "4.3" },
			};
			#endif
		}

		internal class GroupedItems : ObservableCollection<string> {
			public GroupedItems (string groupName) { GroupName = groupName; }
			public string GroupName { get; private set; }
		}
	}
}