Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.29 KB

WPF0170.md

File metadata and controls

51 lines (36 loc) · 1.29 KB

WPF0170

StyleTypedProperty.Property must exist.

Topic Value
Id WPF0170
Severity Warning
Enabled True
Category WpfAnalyzers.StyleTypedProperty
Code AttributeAnalyzer

Description

StyleTypedProperty.Property must exist.

Motivation

ADD MOTIVATION HERE

How to fix violations

ADD HOW TO FIX VIOLATIONS HERE

Configure severity

Via ruleset file.

Configure the severity per project, for more info see MSDN.

Via #pragma directive.

#pragma warning disable WPF0170 // StyleTypedProperty.Property must exist.
Code violating the rule here
#pragma warning restore WPF0170 // StyleTypedProperty.Property must exist.

Or put this at the top of the file to disable all instances.

#pragma warning disable WPF0170 // StyleTypedProperty.Property must exist.

Via attribute [SuppressMessage].

[System.Diagnostics.CodeAnalysis.SuppressMessage("WpfAnalyzers.StyleTypedProperty", 
    "WPF0170:StyleTypedProperty.Property must exist.", 
    Justification = "Reason...")]