summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla41078.cs
blob: 0c9153312547e09d6cb82a812330cfbc1c9283ba (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
32
33
34
35
36
using System;

using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
using System.Collections.Generic;

#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
#endif

namespace Xamarin.Forms.Controls.Issues
{
	[Preserve(AllMembers = true)]
	[Issue(IssueTracker.Bugzilla, 41078, "[Win 8.1] ListView not visually setting the initial SelectedItem upon creation", PlatformAffected.WinRT)]
	public class Bugzilla41078 : TestContentPage
	{
		protected override void Init()
		{
			var list = new List<int> { 1, 2, 3 };
			var listView = new ListView
			{
				ItemsSource = list,
				SelectedItem = list[1]
			};
			Content = new StackLayout
			{
				Children =
				{
					new Label { Text = "The '2' cell should have a background color indicating it is selected" },
					listView
				}
			};
		}
	}
}