A button in WPF has default visual states, and we see these different visual states when we interact with the button by clicking on it or by hovering the mouse over it. We will modify these states, add a new state, and see the transition between these states on user interaction.
VSMDemo. Add a button to the art board. Now right-click on the button, navigate to Edit Template | Edit a Copy…, and you would see a dialog box prompting you to give a name to this resource. Give a name and click on Ok. The following screenshot shows this: