Teil von  SELFPHP
  +++ SELFPHP CronJob-Service :: Jetzt auch als Professional-Version verfügbar! +++

:: Anbieterverzeichnis ::

Globale Branchen

Informieren Sie sich über ausgewählte Unternehmen im Anbieterverzeichnis von SELFPHP  

 

:: SELFPHP Forum ::

Fragen rund um die Themen PHP? In über 120.000 Beiträgen finden Sie sicher die passende Antwort!  

 

:: Newsletter ::

Abonnieren Sie hier den kostenlosen SELFPHP Newsletter!

Vorname: 
Name:
E-Mail:
 
 

:: Qozido ::

Die Bilderverwaltung mit Logbuch für Taucher und Schnorchler.   

 
 
Adding Walls and Creating Animations


SELFPHP Produktempfehlung
Microsoft Windows Server 2008
Seite Windows Server 2008
Seite

Microsoft SQL Server 2008
Seite SQL Server 2008
Seite

Microsoft Expression Web 3
Seite Microsoft Expression
Seite


Triggering the Animation With Code
If you were to build your application right now you still would not see the animation. This is because in Blend, you need to specifically trigger animations to see them. Luckily, this is fairly easy. You will now create event handlers for two events, the first is when the page is loaded; you want the storyboard with the fade-in/Fade-out text to play. The second event is when the user clicks on the ball to start the game; you want the storyboard to stop.

  1. In the Objects and Timeline Panel, click the UserControl element. Then in the Properties panel, click the Events icon to view the list of events.
  2. Double-click inside the Loaded event and you will be sent to the code-behind file for the page.




    It is here you will need to add the necessary code to play the animation.
  3. In the constructor that appears, type the following code (or follow the cues from the Intellisense)
    this.GameBegin.Begin();
  4. Return to Mainpage.xaml and click the ball to select it. In the Properties panel, click the Events icon and double-click in the MouseLeftButtonDown field to open the Code-Behind file.
  5. Here type the following code (or follow the cues from Intellisense)
    this.gameBegin.Stop();
  6. Press f5 to build your project. The beginning animation will loop continuously until you click the ball, then it disappears.


Seite 3 von 3 1 2 3



Downloads

Copyright © 2010
Microsoft Deutschland GmbH
Alle Rechte vorbehalten.

 Microsoft Deutschland GmbH
 




:: Premium-Partner ::

Webhosting/Serverlösungen


Premium-Partner MECO Systemhaus GmbH & Co. KG
Premium-Partner PSW GROUP GmbH & Co. KG
Premium-Partner BPI-Systeme
Premium-Partner Pixel X
Premium-Partner
 

:: SELFPHP Sponsoren ::


DM Solutions
Microsoft Deutschland GmbH
twosteps.net - ...Premium-Webhosting
Sedo - Bei uns wird PHP großgeschrieben
hostfactory.ch - OptimaNet Schweiz AG
ZEND - The PHP Company
Kaspersky Labs
HighText iBusiness
SELFPHP Sponsoren
 

Qozido


© 2001-2013 E-Mail SELFPHP OHG, info@selfphp.deImpressumKontakt