|Synopsis:||Consider introducing implicit styles to avoid duplication of XAML code|
Sometimes, your XAML needs to define a number of elements of the same type that should all have certain properties set in the same way. In order to avoid duplication of XAML code, you should consider defining a local implicit style to take care of all the commonalities. Implicit styles are one of the most powerful tools that the XAML developer has to increase the uniformity of the UI elements, and to enhance the readability and the maintainability of the XAML code.
The following example illustrates the use of an implicit style based on an existing custom button style that sets the width and height for a collection of buttons.