Layout Transitions - An Animatable WrapPanel

  I’ve been playing around with RenderTransforms and decorators and such to make layout transitions, but for this WrapPanel, my goal was to introduce no additional UI elements, animations or transforms. I also wanted to use some easing equations to do some cool transitions, and separate that logic from the WrapPanel. I wanted the elements the be…

10

Using VS Snippets to Add DependencyProperties and Attached DependencyProperties

It can be a little tedious to type in everything that you need to define a DependencyProperty but you can use VS 2008’s snippets to make is easy. The snippets are designed to work with WPF, but they can be made to work with Silverlight with one small change. First, you need to insert the…

1

Using an Attached DependencyProperty to Implement Pixel Snapping as an Attached Behavior

In a previous post, I introduced the Snapper element, which is a UserControl subclass that snaps its Content to an integer pixel. Now I’ll show how to implement snapping as an attached behavior using a custom attached DependencyProperty. To use the Snapper element, you put it into your tree, and “wrap” the element that you want…

7