public ListViewTextCellTest(bool automated) : base(automated) { InitializeComponent(); List1.ItemsSource = Enumerable.Range(0, _elementsCount).Select(s => new { Text = $"Text {s}", Detail = $"Detail {s}" }); ScrollToEnd = async() => await List1.ScrollListToEnd(); }
public ListViewSimpleViewCellTest(bool automated) : base(automated) { InitializeComponent(); List1.ItemsSource = Enumerable.Range(0, _elementsCount).Select(s => new { Title = $"Title {s}", Description = $"Description {s}", Date = DateTime.Now, Icon = "ic_schedule_black_48dp.png" }); ScrollToEnd = async() => await List1.ScrollListToEnd(); }
public ListViewEntryCellTest(bool automated) : base(automated) { InitializeComponent(); List1.ItemsSource = Enumerable.Range(0, _elementsCount).Select(s => new { Label = $"Label {s}", Placeholder = $"Placeholder {s}", Text = s % 2 == 0 ? $"Text {s}" : null, Keyboard = Keyboard.Numeric }); ScrollToEnd = async() => await List1.ScrollListToEnd(); }
public ListViewExtendedViewCellTest(bool automated) : base(automated) { InitializeComponent(); List1.ItemsSource = Enumerable.Range(0, _elementsCount).Select(s => new { Background = Color.FromHex("#eeeeee"), StatusColor = colors[s % colors.Length], Title = $"Title {s}", Description = $"Long Description Long Description Long Description {s}", Date = DateTime.Now, IconTitle = "ic_schedule_black_48dp.png", Icon1 = "ic_schedule_black_48dp.png", Icon2 = "ic_schedule_black_48dp.png", Icon3 = "ic_schedule_black_48dp.png", Icon4 = "ic_schedule_black_48dp.png", StatusIcon = "ic_schedule_black_48dp.png", Status1Color = Color.LightGreen, Status1Icon = "ic_schedule_black_48dp.png", Status1Label = "Status 1", Status2Color = Color.LightGray, Status2Icon = "ic_schedule_black_48dp.png", Status2Label = "Status 2", Status3Color = Color.LightPink, Status3Icon = "ic_schedule_black_48dp.png", Status3Label = "Status 3", Status4Color = Color.LightSkyBlue, Status4Icon = "ic_schedule_black_48dp.png", Status4Label = "Status 4", }); ScrollToEnd = async() => await List1.ScrollListToEnd(); }