The getters and setters work differently in dependency properties. Rather than returning or setting a value from/to its private field (CLR property), the dependency property calls GetValue(DependencyProperty) or SetValue(DependencyProperty, value) from its base class DependencyObject. In our example, the name of the dependency property is PersonNameProperty.
The static Register method of the DependencyProperty class takes a few parameters to create the dependency property. The first parameter that it takes is the actual name of the property. The second parameter is the type of the property, the third is the owner type which is basically the class name where the dependency property is going to create. The next parameter it takes is the metadata information, where you can assign the default value of the property. Here is the complete code:
public static readonly DependencyProperty PersonNameProperty = DependencyProperty.Register("PersonName", ...