Esempio n. 1
0
        protected IDisposable BeginStoryboard()
        {
            if (_currentStoryboardDisposable != null)
                throw new InvalidOperationException("You cannot call BeginStoryboard without running the storyboard you began with a previous call.");

            _currentStoryboardDisposable = new StoryboardDisposable(new Storyboard());
            _currentStoryboardDisposable.Disposed += CleanupStoryboardDisposable;
            return _currentStoryboardDisposable;
        }
Esempio n. 2
0
 private void CleanupStoryboardDisposable()
 {
     _currentStoryboardDisposable = null;
 }