Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
[Controls]Add more info to test #3408
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho committed Sep 18, 2018
1 parent 135f358 commit c41ca1b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ protected override void Init()

var grd = new Grid();

var aacountListView = new ListView();
var aacountListView = new ListView
{
AutomationId = "AccountDetailsDataTemplateSelector"
};
aacountListView.HasUnevenRows = true;
aacountListView.ItemTemplate = new AccountDetailsDataTemplateSelector();
aacountListView.BindingContext = new List<RecommendationsViewModel> { new RecommendationsViewModel() };
Expand Down Expand Up @@ -146,9 +149,9 @@ public class RecommendationsView : ContentView
{
public RecommendationsView()
{
Grid grd = new Grid();
var lst = new ListView
{
AutomationId = "SwitchCell",
ItemTemplate = new DataTemplate(() =>
{
var swittch = new SwitchCell();
Expand All @@ -160,8 +163,7 @@ public RecommendationsView()
};

lst.SetBinding(ListView.ItemsSourceProperty, new Binding("Recommendations"));
grd.Children.Add(lst);
Content = grd;
Content = lst;
}

// This work around exists because of this issue
Expand Down

0 comments on commit c41ca1b

Please sign in to comment.