Information about the scrolling device's configuration & state. Contains the time interval between two scrolling beats and the element that was previously scrolled on
示例#1
0
 internal void Tick( BeginScrollingInfo scrollingInfo )
 {
     ProcessScrollingTick( scrollingInfo.TickInterval );
 }
 public ScrollingDirective BeginHighlight( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective )
 {
     if( _highlightPrePostChildren )
     {
         foreach( var p in _preChildren ) p.BeginHighlight( beginScrollingInfo, scrollingDirective );
         foreach( var p in _postChildren ) p.BeginHighlight( beginScrollingInfo, scrollingDirective );
     }
     return _element.BeginHighlight( beginScrollingInfo, scrollingDirective );
 }
 public ScrollingDirective BeginHighlight( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective )
 {
     ResetAutoPause();
     return scrollingDirective;
 }
示例#4
0
 public ScrollingDirective BeginHighlight( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective )
 {
     foreach( var child in Children )
     {
         child.BeginHighlight( beginScrollingInfo, scrollingDirective );
     }
     return scrollingDirective;
 }
示例#5
0
 public ScrollingDirective BeginHighlight( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective )
 {
     return scrollingDirective;
 }
示例#6
0
 public ScrollingDirective BeginHighlight( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective )
 {
     IsHighlighted = true;
     return scrollingDirective;
 }
示例#7
0
        public ScrollingDirective BeginHighlight( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective )
        {
            _viewModel.IsWindowHighlighted = true;

            return scrollingDirective;
        }
示例#8
0
        public ScrollingDirective BeginHighlight(BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective)
        {
            _selected = false;
            IsHighlighted = true;

            if(_textTemplate != null) _textTemplate.FocusOnElement(this);
            return scrollingDirective;
        }
示例#9
0
 public ScrollingDirective BeginHighlight( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective )
 {
     //If we haven't entered the children yet, we highlight all of the screens.
     //Once a first Select element has been triggered, we start scrolling the screens.
     if( CurrentNode == null )
     {
         foreach( var node in ChildNodes )
         {
             node.IsHighlighted = true;
         }
     }
     else
     {
         ProcessTick( scrollingDirective );
     }
     return scrollingDirective;
 }
示例#10
0
 public ScrollingDirective BeginHighlight( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective )
 {
     if( beginScrollingInfo.PreviousElement != this )
         IsHighlighting = true;
     return scrollingDirective;
 }
示例#11
0
        public ScrollingDirective BeginHighlight( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective )
        {
            if( _radar._timerRotate.IsEnabled )
                Debug.Assert( _radar.CurrentStep == RadarStep.Rotating && !_radar._timerTranslate.IsEnabled );
            else if( _radar._timerTranslate.IsEnabled )
                Debug.Assert( _radar.CurrentStep == RadarStep.Translating && !_radar._timerRotate.IsEnabled );

            //When begin highlight is triggered, we have three cases :
            // - we are begin scrolled on, because the scroller is scrolling on the module level. In this case we focus the radar to show the user that the radar is currently being scrolled on.
            // - we are already focused (the current action is stayonthesamelocked and beginScrollingInfo.PreviousElement == this). In this case we do nothing but tell the radar to check that its tick is still in sync with the configuration.
            // - we are paused and the radar is the only element in the scrolling tree (the current action is Normal and beginScrollingInfo.PreviousElement == this) : we do the same as the previous case.

            Focus();

            //The scroller is actually scrolling on this element, and hooked by the StayOnTheSameLocked, or we are the only element in the scrolling tree : we relay the scroller's tick to the radar.
            if( beginScrollingInfo.PreviousElement == this )
                _radar.Tick( beginScrollingInfo );

            if( _yield )
            {
                //Once the DelayRadar has ticked, we release the scroller.
                scrollingDirective.NextActionType = ActionType = ActionType.GoToAbsoluteRoot;
                scrollingDirective.ActionTime = ActionTime.Immediate;
            }

            return scrollingDirective;
        }
示例#12
0
        public ScrollingDirective BeginHighlight( BeginScrollingInfo beginScrollingInfo, ScrollingDirective scrollingDirective )
        {
            if ( Parent.IsViewHidden )
            {
                IsHighlighted = true;
            }

            return scrollingDirective;
        }