private void unselect() { if (currentSelectedItem != null) { currentSelectedItem.MarkUnselected(); currentSelectedItem = null; } }
private void select(LoopingSelectorItemBase selectedItem) { this.currentSelectedItem = selectedItem; selectedItem.MarkSelected(); }
private async Task <bool> scrollIntoView(LoopingSelectorItemBase item, bool useAnimation = false) { double offset = dataSource.IndexOf(item); return(await scrollTo(offset *itemHeight, useAnimation)); }