Expression > Gallery > Behaviors > Sample WPF Behaviors
Express yourself! Share your work with other members of the Expression Community.

Each contribution is licensed to you under a License Agreement by its owner, not Microsoft. Microsoft does not guarantee the contribution or purport to grant rights to it.

Sample WPF Behaviors

Average Rating:  (6)
Description
Discussions (1)
  • Excellent post
    10 Posts | Last Post: May 25, 2009
    • You saved me a lot of grief trying to get the Silverlight 3 samples of behaviors to work in WPF. Also, your implementation of your CommandAction class is very useful, since I'm using the MVVM pattern for my project. I needed a way to bind events such as "MouseDoubleClick" in my View to Commands I've declared in my ViewModel. This gives me a great way to do that. Thanks a lot.
    • Thanks for the kind words!

      By the way, I just added a TextBoxAutoSelectBehavior to the .zip file.
    • I'll check it out. Thanks
    • Please post the BodyBehavior as shown in the Mix09! It will solve a lot of my problems.
    • please can you post a step by step instruction to install the behaviors for designer ;). i got only errors!!! :(
    • Can I use the dll Microsoft.Expression.Interactivity in my application? will there be any copyright issues?
    • Florian, see this blog article by Kirupa for details on how to get started: http://blog.kirupa.com/?p=351

      Joymon, I don't know the answer to that. I would like to know the answer as well.

      Tor.
    • ok i see to use behaviors in silverlight is quite simple but in a wpf projekt i have only cs files?! is it possible that blend show me this cs files as behaviors? how?
    • @ Tor Langlo

      it is possible to port the gotostate behavior from silverlight to wpf? i use the wpf toolkit to get the VSM under wpf. it is possible?
    • If you put the target object in Canvas, and then scale the canvas (ScaleTransform) the drag behavior gets confused. You can drag, but the offset between mouse and what you are dragging changes over distance.