Topic | Value |
---|---|
Id | WPF0105 |
Severity | Warning |
Enabled | True |
Category | WpfAnalyzers.RoutedEvent |
Code | RoutedEventEventDeclarationAnalyzer |
Call RemoveHandler in remove.
ADD MOTIVATION HERE
ADD HOW TO FIX VIOLATIONS HERE
Configure the severity per project, for more info see MSDN.
#pragma warning disable WPF0105 // Call RemoveHandler in remove.
Code violating the rule here
#pragma warning restore WPF0105 // Call RemoveHandler in remove.
Or put this at the top of the file to disable all instances.
#pragma warning disable WPF0105 // Call RemoveHandler in remove.
[System.Diagnostics.CodeAnalysis.SuppressMessage("WpfAnalyzers.RoutedEvent",
"WPF0105:Call RemoveHandler in remove.",
Justification = "Reason...")]