public void LoadLists(IListViewPicker mod) { _thisMod = mod; _textList = _thisMod.TextList; _textList.CollectionChanged += TextList_CollectionChanged; if (TotalColumns == 0) { _thisStack = new StackLayout(); _thisStack.Orientation = Orientation; } else { _thisGrid = new Grid(); AddAutoRows(_thisGrid, 1); //at least one row obviously. AddAutoColumns(_thisGrid, TotalColumns); } Margin = new Thickness(3, 3, 3, 3); PopulateList(); if (TotalColumns == 0) { Content = _thisStack; } else { Content = _thisGrid; } }
public void LoadLists(IListViewPicker mod) { _thisMod = mod; _textList = _thisMod.TextList; _textList.CollectionChanged += TextList_CollectionChanged; Visibility = Visibility.Visible; //could be iffy (?) //hopefully no need for the other part. //_thisMod.PropertyChanged += ThisMod_PropertyChanged; if (TotalColumns == 0) { _thisStack = new StackPanel(); _thisStack.Orientation = Orientation; } else { _thisGrid = new Grid(); AddAutoRows(_thisGrid, 1); //at least one row obviously. AddAutoColumns(_thisGrid, TotalColumns); } Margin = new Thickness(3, 3, 3, 3); PopulateList(); if (TotalColumns == 0) { Content = _thisStack; } else { Content = _thisGrid; } }