Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » DependencyProperty   (RSS)

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

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
 
Page view tracker