コード例 #1
0
 private void unselect()
 {
     if (currentSelectedItem != null)
     {
         currentSelectedItem.MarkUnselected();
         currentSelectedItem = null;
     }
 }
コード例 #2
0
 private void select(LoopingSelectorItemBase selectedItem)
 {
     this.currentSelectedItem = selectedItem;
     selectedItem.MarkSelected();
 }
コード例 #3
0
        private async Task <bool> scrollIntoView(LoopingSelectorItemBase item, bool useAnimation = false)
        {
            double offset = dataSource.IndexOf(item);

            return(await scrollTo(offset *itemHeight, useAnimation));
        }