2016-03-24 01:31:38 +03:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
using Xamarin.Forms.CustomAttributes;
|
2016-04-26 18:20:55 +03:00
|
|
|
|
using Xamarin.Forms.Internals;
|
2016-03-24 01:31:38 +03:00
|
|
|
|
|
|
|
|
|
#if UITEST
|
|
|
|
|
using Xamarin.UITest;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
#endif
|
|
|
|
|
|
2016-11-17 00:07:30 +03:00
|
|
|
|
namespace Xamarin.Forms.Controls.Issues
|
2016-03-24 01:31:38 +03:00
|
|
|
|
{
|
|
|
|
|
[Preserve(AllMembers = true)]
|
2018-05-16 02:13:08 +03:00
|
|
|
|
[Issue(IssueTracker.Bugzilla, 39829, "RowHeight of ListView is not working for UWP", PlatformAffected.UWP)]
|
2016-03-24 01:31:38 +03:00
|
|
|
|
public class Bugzilla39829 : TestContentPage
|
|
|
|
|
{
|
|
|
|
|
protected override void Init()
|
|
|
|
|
{
|
|
|
|
|
Title = "Master";
|
2018-05-16 02:13:08 +03:00
|
|
|
|
|
|
|
|
|
var instructions = new Label
|
|
|
|
|
{
|
|
|
|
|
Text = "The text items in the list below should be spaced far apart vertically. "
|
|
|
|
|
+ "If they are close together, this test has failed."
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
2016-03-24 01:31:38 +03:00
|
|
|
|
var listView = new ListView
|
|
|
|
|
{
|
|
|
|
|
RowHeight = 150,
|
|
|
|
|
AutomationId = "listview",
|
2018-05-16 02:13:08 +03:00
|
|
|
|
ItemsSource = new[] { "Test1", "Test2", "Test3", "Test4", "Test5", "Test6", }
|
2016-03-24 01:31:38 +03:00
|
|
|
|
};
|
|
|
|
|
|
2018-05-16 02:13:08 +03:00
|
|
|
|
Content = new StackLayout { Children = { instructions, listView } };
|
2016-03-24 01:31:38 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|