The public dependency property standard must be validated in all.cs files in a project (WF, WPF, UWP and WinUI). For example, if a CustomControl.cs file contains a public dependency property, it should be named Header -> HeaderProperty (API Name + Property) if it is not named based on standard, a warning/message should be displayed when the project is compiled.
Below dp property doesn't follow above standard, So that the project need to throw a warning/error/message when it compiles.
public static readonly DependencyProperty **OnHeaderProperty** = DependencyProperty.Register(nameof(Header), typeof(object), typeof(RibbonGroup), new PropertyMetadata(null)); public object **Header** { get { return (object)GetValue(OnHeaderProperty); } set { SetValue(OnHeaderProperty, value); }
Any Nuget package available to achieve this requirement?