The property that is specified in the RuntimeNamePropertyAttribute must of type String and must be read/write.
A XAML name value must use the XamlName Grammar.
An example of an existing class in Windows Presentation Foundation (WPF) where the RuntimeNamePropertyAttribute is applied is FrameworkElement. The Name property on FrameworkElement is set as the runtime name property, which results in any FrameworkElement derived class also using Name as its runtime name property.
In general, you do not typically need to apply this attribute unless you are implementing a new or FrameworkElement-parallel framework-level class.