コード例 #1
0
ファイル: Splash.cs プロジェクト: alkampfergit/BaktunShell
        /// <summary>
        /// Initializes a new instance of the <see cref="Splash"/> class.
        /// </summary>
        /// <remarks>
        /// Displays the animated splash screen and starts a timer to close the screen.
        /// </remarks>
        public Splash()
        {
            this.AllowsTransparency = true;
            this.Placement = PlacementMode.Center;

            Rect screenRect = new Rect(0, 0, SystemParameters.PrimaryScreenWidth,
                SystemParameters.PrimaryScreenHeight);
            this.PlacementRectangle = screenRect;

            IKLogoAnimated logo = new IKLogoAnimated();
            logo.InitializeComponent();
            this.Child = logo;

            this.closeTimer = new DispatcherTimer();
            this.closeTimer.Interval = TimeSpan.FromSeconds(3);
            this.closeTimer.Tick += this.CloseTimerTick;
            this.closeTimer.Start();
        }
コード例 #2
0
ファイル: Splash.cs プロジェクト: Plankankul/Verve-Patch
        /// <summary>
        /// Initializes a new instance of the <see cref="Splash"/> class.
        /// </summary>
        /// <remarks>
        /// Displays the animated splash screen and starts a timer to close the screen.
        /// </remarks>
        public Splash()
        {
            this.AllowsTransparency = true;
            this.Placement          = PlacementMode.Center;

            Rect screenRect = new Rect(0, 0, SystemParameters.PrimaryScreenWidth,
                                       SystemParameters.PrimaryScreenHeight);

            this.PlacementRectangle = screenRect;

            IKLogoAnimated logo = new IKLogoAnimated();

            logo.InitializeComponent();
            this.Child = logo;

            this.closeTimer          = new DispatcherTimer();
            this.closeTimer.Interval = TimeSpan.FromSeconds(3);
            this.closeTimer.Tick    += this.CloseTimerTick;
            this.closeTimer.Start();
        }