How can I know which VisualState of control already defined in XAML?
For example, WPF Button control has 2 VisualStateGroups by default. They are "CommonStates" and "FocusStates". The "CommonStates" contains 4 VisualState: "Normal", "MouseOver", "Pressed", "Disabled". These states already have default handlers so when the mouse over or pressed, Button's VisualState changes corresponding. Thank you for reading!
The wpf designer of visual studio has an "edit template" function. You can use that to veiw any control's default template. You can do that by follow the steps:
If you can't do that, you still can get templates of standard wpf controls from msdn https://learn.microsoft.com/dotnet/framework/wpf/controls/control-styles-and-templates