Silverlight 3 Behavior Tutorial Video Now Available!

In this tutorial I show you how to create a Silverlight 3 Behavior and then easily make use of it in Blend 3. 

This tutorial covers:
1. Creating a new Silverlight 3 project;
2. Adding shapes to the artboard;
3. Editing the project in Visual Studio;
4. Creating a new class;
5. Adding references to dll’s;
6. Extending classes;
7. Overriding abstract Methods;
8. Creating Events and EventHandlers;
9. Creating a custom DependencyProperty;
10. Applying Behaviors in Blend 3;
11. Setting Behvaior properties in Blend 3.

Difficulty: 6 out of 10.

Duration: About 20 minutes.

Who this is for: Developers and designers wanting to learn how to create behaviors.

Video URL:

Source Code URL:

  1. Hey Victor – great video. I skimmed through it, so I apologize if you already mentioned what Iam about to say.

    One minor suggestion. For creating a new behavior using VS, you don’t have to start from a blank class. As long as the Blend SDK is installed, the Add New Item dialog will have a Blend category (as seen in your video as well) with item templates for Behaviors, Actions, and Triggers.

    We even add the references to S.W.I.dl for you =)


  2. Hello Kirupa! I did not know this! How very cool and even more simple than I made it out to be. And I love the fact that you add the reference to SWI! Great Job! Thanks very much for this little gold nugget of information. It just goes to show, no matter how much you know you really never know everything! Again, Thanks!

  3. Hi Victor, great video (having done a bit of this myself in the past I really felt for you when you got the hiccups towards the end!)

    One observation, the dialog windows in Blend (color picker etc.) were not showing up in the capture. I initially thought they were popping up on your second monitor but watching the position of your cursor I don’t think this was the case. Were you using Expression Encoder Screen Capture?

    I know it was a lot of extra work for you, but are you planning to do these for the other topics you will be covering? I’d love to attend the live sessions but they tend to be quite late for me (I’m in the UK) and it is great to have something to refer to later.


  4. Hey, I read a lot of blogs on a daily basis and for the most part, people lack substance but, I just wanted to make a quick comment to say GREAT blog!…..I”ll be checking in on a regularly now….Keep up the good work! 🙂

  5. How come the Override method inside the behavior class receives a type Object and not a FrameworkElement which is what the Generic type is selected. In other words…

    protected override void Invoke(object parameter)


    I would think this would be

    protected ovveride void Invoke(FrameworkElement parameter)


    • kyleund
    • April 13th, 2010

    Hi Victor, great video. The source code url is giving a 404 Page not found error. Is it available on another url?

    • bokkie
    • May 13th, 2010

    hi Victor, great blog and nice job that you are doing. have to admit, I really enjoyed the part with the hiccups. watched some of your videos and there is always something funny happening, either your coughs or the kids or the wife or the hiccups 😛
    there are a few things though that I would like to make an observation about:
    when you make the override you say blend creates the override…suppose it was VS 😉
    then you make the two private members, which you say they are properties. and you say how lower case and upper case and how private and public….so they are members, not properties, this might confuse someone 🙂

    nice work, waiting for more vids
    Thank you

    • Frank
    • May 25th, 2010

    Excellent tutorial. The Source Code URL is broken.

    • Thank you Frank! You are correct it was in fact a broken link. I have fixed it for you. Please keep up the good work so that this type of thing doesn’t occur again. Victor

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: