SpriteHand
Module Border
  Behaviors in Expression Blend 3
Module Border
Location: BlogsAndy's Blog    
Posted by: host 3/24/2009 3:49 PM


One of the really fun and productive things coming to Expression Blend 3 and Silverlight 3 is the concept of Behaviors.  In a nutshell, you will be able to drag/drop a Behavior in Blend 3 onto a UI Element on the design surface, and that will automatically inject runtime logic into that element. Behaviors aren’t a new concept, and there is even an equivalent in the ASP.NET AJAX world if you’ve played with creating custom controls in that universe.

Physics Behaviors!

One of the most fun examples I’ve seen using Behaviors was done by Pete Blois, a Program Manager on the Expression team at Microsoft. Pete and another developer created some Physics Behaviors which very closely mirror the Physics Helper Library I created for the Farseer Physics Engine. I first saw Pete demo the Physics Behaviors at the MVP Summit a few weeks ago, and my jaw dropped at the similarities! Pete & Co.’s Physics Behaviors use the Box2D Physics Engine.

Getting Started with Behaviors

If you’re playing with Silverlight 3 and Blend 3, why wait? You can play with Behaviors today! Note this is all Beta level stuff, so be prepared for some hiccups along the way

Pete’s MIX Session – Pete Blois gave a great overview of Behaviors in this MIX 09 session.

Using Behaviors – A quick Walkthrough by Kirupa on how to use behaviors! Pay special attention to where you find the assembly Microsoft.Expression.Interactivity.dll - you'll need that for the next link.

MIX Behavior Pack – this contains the Physics Behaviors, as well as a bunch of others.

Creating New Behaviors

It turns out it’s pretty easy to create your own behaviors, and I’ll be covering this in a later blog post. But if you can’t wait, just download the MIX Behavior Pack and have a look at the Behaviors, all of their source code is included!

 

 

Permalink |  Trackback

Comments (1)   Add Comment
Re: Behaviors in Expression Blend 3    By Anonymous on 4/12/2009 2:30 PM
I would realy love to see your Farseer Physic Helper implemented as behaviors...


Title:
Comment:
Add Comment   Cancel 
Module Border Module Border
Module Border
  Subscribe
Module Border

RSS

Module Border Module Border
Module Border
  Diversions
Module Border

BOSS LAUNCH
This physics game won first place in the Server Quest Contest. Created using Silverlight 2, the Physics Helper Library,  and the Farseer Physics Engine.
PLAY IT

INFO AND CODE



DESTROY ALL INVADERS
A scrolling shooter game where the objective is to destroy the invading UFO's flying over a neighborhood of your choosing. Imagery provided by Microsoft Virtual Earth. Created using Silverlight 2.
PLAY IT

INFO AND CODE



PHYSICS HELPER DEMOS
These demos were created for the Physics Helper Library, which makes it easy to create physics games and simulations using Expression Blend, Silverlight, and the Farseer Physics Engine.
PLAY IT

INFO AND CODE



HOOK SHOT
This little basketball game took first place in the TeamZoneSports Silverlight Contest. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

INFO AND CODE



SORT THE FOOBARS
A game where you need to sort the good foobars from the bad ones. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

MORE INFO



POLYGON PHYSICS DEMO
A demo showing polygon physics where the user draws physics objects with the mouse. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

MORE INFO



SILVERLIGHT ROCKS!
Destroy the asteroids before they destroy your ship! Created using Silverlight 2.
PLAY IT

INFO AND CODE



FISH GAME
A simple game of harpoon-the-fish. Written using the AJAX Sprite Toolkit.
PLAY IT

INFO AND CODE

Module Border Module Border
Module Border
  Search_Blog
Module Border
Module Border Module Border
Module Border
  Blog_Archive
Module Border
Module Border Module Border
Copyright (c) 2010 andy.beaulieu.com - Login