public void ShowPicker() { currentPopup = popup.Template(); currentPopup.Show(); currentListView = currentPopup.GetComponentInChildren <ListViewInt>(); // fill list with values currentListView.DataSource = Enumerable.Range(1, 100).ToObservableList(); // deselect currentListView.SelectedIndex = -1; currentListView.OnSelectObject.AddListener(Callback); }
/// <summary> /// Show picker. /// </summary> public void ShowPicker() { currentPopup = PopupTemplate.Clone(); currentPopup.Show(); currentListView = currentPopup.GetComponentInChildren <ListViewInt>(); // fill list with values currentListView.DataSource = Utilites.CreateList(100, x => x); // deselect currentListView.SelectedIndex = -1; currentListView.OnSelectObject.AddListener(Callback); }