Example #1
0
        private void DrawScene()
        {
            var isPremium           = Settings.IsPremiumUser();
            var isColorAnimationOff = Settings.IsSceneColorAnimationDeactivated();

            var scene = Scenes.CreateNew(
                _pageDataSource.Forecast,
                isPremium,
                isColorAnimationOff);

            Theater.Children.Add(scene);

            scene.Opacity = 0;

            Theater.Fade(1, 1000, 500).Start();

            scene.Offset(0, 200, 0)
            .Then()
            .Fade(1, 1000)
            .Offset(0, 0, 1000)
            .SetDelay(500)
            .Start();



            //Timer deffered = null;

            //deffered = new Timer(async (object state) => {
            //    await _UIDispatcher.RunAsync(CoreDispatcherPriority.Normal, () => {
            //        if (_isSpecialSceneChecked) { deffered?.Dispose(); }

            //        _isSpecialSceneChecked = true;
            //        AddSpecialScene();
            //    });
            //}, new AutoResetEvent(true), 3000, 2000);
        }
Example #2
0
 private void CleanTheater()
 {
     Theater.Children.Clear();
     Theater.Fade(0).Start();
 }