From 534469074a17756a80ab0478679752ab2f910af8 Mon Sep 17 00:00:00 2001 From: Carl Date: Tue, 13 May 2014 14:18:01 +0200 Subject: [PATCH] Update README.md Added style name rule in "maintenance" section --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index db26f04..e9ba137 100644 --- a/README.md +++ b/README.md @@ -355,6 +355,26 @@ If the style is used only on a portion of the file: - Make the style an explicit style, - Add the proper style binding in all involved controls. +#### XA3003 - Name should reflect usage scenario +##### **Cause** +As the application evolves, styles tend to get used on controls and/or cases that weren’t necessarily thought of in the first place. Having style names reflecting their usage eases app maintenance. + +##### **Rule description** +A violation of this rule occurs when a style is used for something else that it was initially meant for causing its name to be out of sync with its purpose. For example: + +```xml +