Tuesday, March 11, 2008

RuntimeNameProperty related

The RuntimeNameProperty indicates which property should be treated as the name for instances of that type. The FrameworkElement class includes the RuntimeNameProperty attribute.

In a traditional Windows Forms application, every control has a name. In a WPF application, the only elements that have names are ones that you want to manipulate programmatically.

This simplifies your markup, and allows you to easily distinguish between fixed and dynamic portions of your user interface.

No comments: