Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Property system   (RSS)

Control Lifecycle

What happens when you create a Control? When do overrides get called and events get raised? When do styles get applied? In response to this thread on silverlight.net, I've whipped this simple table up. There are some subtle differences between instantiating

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