Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Nuget Package for dependency property standard checking

$
0
0

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?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>