Adds code to register a read-only DependencyProperty. This snippet must be added to a class that derives from DependencyObject. ...