Add a DependencyProperty Registration Microsoft Corporation Adds code to register a read-write DependencyProperty. This snippet must be added to a class that derives from DependencyObject. wpfdp Expansion
WindowsBase PresentationCore PresentationFramework System.Windows propertyType Replace with the type of the property. string propertyName Replace with the name of the property. Prop1 ownertype Control Replace with the name of the class this snippet is being added to. Window1 defaultValue Replace with the default value of the property. Nothing