Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Animation » attached behavior   (RSS)

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