I'm basically curious if any Microsoft code (.NET Framework) has any files that show attached properties and attached behaviors. I'm aware of numerous examples out there on the internet, but I'm more curious about seeing how Microsoft codes it.

有帮助吗?

解决方案

Microsoft uses attached properties. Specifically Grids. You assign a control's row and column in a grid through attached properties. The MSDN documentation on Attached Properties also mentions DockPanels:

http://msdn.microsoft.com/en-us/library/ms749011.aspx

其他提示

In the Expression Blend SDK there are several behaviors.

I would dump this with reflector and look through the code. It's been highly informative for me trying to implement my own mouse drag behavior.

http://msdn.microsoft.com/en-us/library/ff723971%28v=expression.40%29.aspx

I have looked through MouseDragElementBehavior for instance.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top