Esempio n. 1
0
        void InitializeControls()
        {
            var startMenuWindow = new StartMenuWindow(this);

            startMenuWindow.Show();

            var overlay = new FadeOverlay(this);

            overlay.OpacityAnimation.From       = 1;
            overlay.OpacityAnimation.To         = 0;
            overlay.OpacityAnimation.Duration   = TimeSpan.FromSeconds(0.5d);
            overlay.OpacityAnimation.Completed += (s, e) =>
            {
                overlay.Close();
                startMenuWindow.Activate();
            };
            overlay.Show();
        }
Esempio n. 2
0
        void InitializeControls()
        {
            var startMenuWindow = new StartMenuWindow(this);
            startMenuWindow.Show();

            var overlay = new FadeOverlay(this);
            overlay.OpacityAnimation.From = 1;
            overlay.OpacityAnimation.To = 0;
            overlay.OpacityAnimation.Duration = TimeSpan.FromSeconds(0.5d);
            overlay.OpacityAnimation.Completed += (s, e) =>
            {
                overlay.Close();
                startMenuWindow.Activate();
            };
            overlay.Show();
        }