System.Windows.Controls.SelectorSelectionAdapter.SelectedIndexIncrement C# (CSharp) Method

SelectedIndexIncrement() protected method

Increments the P:System.Windows.Controls.Primitives.Selector.SelectedIndex property of the underlying T:System.Windows.Controls.Primitives.Selector control.
protected SelectedIndexIncrement ( ) : void
return void
        protected void SelectedIndexIncrement()
        {
            if(SelectorControl != null)
            {
                SelectorControl.SelectedIndex = SelectorControl.SelectedIndex + 1 >= SelectorControl.Items.Count ? -1 : SelectorControl.SelectedIndex + 1;
            }
        }