You might have noticed that something is still missing from all versions of the custom
Button template used in the preceding section. None of them have any visual reaction to being pressed, hovered over, or disabled. This might not be that big of a deal, depending on their usage, but imagine applying the same template to
ToggleButton. (This can be done by changing the
ButtonBase or a more specific type.) Because the template doesn’t show different visuals for the
Indeterminate states, it’s a pretty lousy template for these controls!
Therefore, a good control template must consider all possible visual states relevant for the target control and handle them appropriately. To ...