共用方式為


Great example of an attached behavior

From Dave Relyea's blog, Pixel Snapping in Silverlight as an attached behavior:

 

https://blogs.msdn.com/devdave/archive/2008/06/22/Using-an-Attached-DependencyProperty-to-Implement-Pixel-Snapping-as-an-Attached-Behavior.aspx

Comments