Example #1
0
        private void ItemController_OnSelectedIndexChanged(object sender, SelectedIndexChangedArgs e)
        {
            this._timer.Stop();
            int Index = e.NewIndex;

            _currentIndex = Index;


            Content.DataContext = InfoList[Index];
            // Content_copy.DataContext = Content.DataContext;
            ////if (this._delayTimer.IsEnabled)
            ////{
            ////    this._delayTimer.Stop();
            ////}
            //this._timer.Stop();
            //if (e.NewIndex > e.PreviousIndex)
            //{
            //    //this.SetIndex(e.NewIndex - e.PreviousIndex);
            //    //this._previousDirection = 1;
            //}
            //else
            //{
            //   // this.SetIndex(e.NewIndex - e.PreviousIndex);
            //  //  this._previousDirection = -1;
            //}
            this._timer.Start();
        }
Example #2
0
        private void ItemController_OnSelectedIndexChanged(object sender, SelectedIndexChangedArgs e)
        {
            this._timer.Stop();
            int Index = e.NewIndex;
            _currentIndex = Index;


            Content.DataContext = InfoList[Index];
            // Content_copy.DataContext = Content.DataContext;
            ////if (this._delayTimer.IsEnabled)
            ////{
            ////    this._delayTimer.Stop();
            ////}
            //this._timer.Stop();
            //if (e.NewIndex > e.PreviousIndex)
            //{
            //    //this.SetIndex(e.NewIndex - e.PreviousIndex);
            //    //this._previousDirection = 1;
            //}
            //else
            //{
            //   // this.SetIndex(e.NewIndex - e.PreviousIndex);
            //  //  this._previousDirection = -1;
            //}
            this._timer.Start();
        }