Exemple #1
0
        private void TimerOnElapsed(object sender, ElapsedEventArgs e)
        {
            Dispatcher.Invoke(() =>
            {
                if (IsResizedEnough())
                {
                    _timer.Stop();
                    _isMoved = false;
                    Debug.WriteLine("Anime ended");
                    if (_isShow)
                    {
                        HelpText.PushMessage(_viewModel.HelpText);
                    }
                    else
                    {
                        HelpShowingEnded?.Invoke(this, null);
                    }
                    return;
                }

                if (_currentHeight > _toHeight)
                {
                    _currentHeight -= 10;
                    if (_currentHeight < 0)
                    {
                        _currentHeight = 0;
                    }
                }
                else
                {
                    _currentHeight += 10;
                }

                Height = _currentHeight;
                Debug.WriteLine($"HelpControl Height: {Height}; ActualHeight: {ActualHeight}");
            });
        }
Exemple #2
0
 private void OnTextPushingEnded(object sender, EventArgs args)
 {
     HelpShowingEnded?.Invoke(this, null);
 }