Пример #1
0
        public async Task ToggleOpen()
        {
            if (_open == 0)
            {
                _xAnimation.Value = this.ActualWidth - this.GrabBarWidth - LayoutRoot.ColumnDefinitions[0].ActualWidth;
            }
            else
            {
                _xAnimation.Value = 0;
            }

            await StaticHelpers.RunStoryBoard(ScoreHistoryAnimatePosition, false, 1000, false);

            _open = 1 - _open;
        }
Пример #2
0
        private async Task Show(bool bShow)
        {
            if (bShow)
            {
                _daVerticalStart.To = -(this.ActualHeight);
                _timer.Start();
            }
            else
            {
                _daVerticalStart.To = 0;
                _timer.Stop();
            }

            await StaticHelpers.RunStoryBoard(_sbShow, false, 1500, true);
        }
Пример #3
0
 static public Task RunStoryBoard(Storyboard sb, bool callStop = true, double ms = 500, bool setDuration = true)
 {
     return(StaticHelpers.RunStoryBoard(sb, callStop, ms, setDuration));
 }
 public async Task Hide()
 {
     Animation_X_RollIn.To     = 0;
     Animation_Angle_RollIn.To = 0;
     await StaticHelpers.RunStoryBoard(RollInScore, false);
 }
 public async Task Show()
 {
     Animation_X_RollIn.To     = this.ActualWidth;
     Animation_Angle_RollIn.To = 360;
     await StaticHelpers.RunStoryBoard(RollInScore, false);
 }