The difference in WPF templates between triggers and visualStateManager

I would like to know what is the difference between triggers and visualStateManager. I use Templating ComboBox and on the official MSDN sites ( http://msdn.microsoft.com/en-us/library/ms752094.aspx ) they use VisualStateManager to change the colors of the selected comboboxitem. But the same thing can be done with triggers.
Are there any differences between? For example, VisualStateManager will be “faster” or I don’t know. And I would like to know which is better to use.

I am noob at templating and I don’t understand it too much, so now I can use triggers (which I understand), but VisualStateManager and some storyboards are unknown to me now.

+6
source share
1 answer

Due to the fact that our programming world is trying to share problems between people, we can conclude that VisualStateManager is a really useful tool for a clear separation of duties.

There is a clear separation of responsibilities: the author of the control determines what the visual states of the control are, and determines when the control goes into each visual state; the author of the template indicates how the control looks in each visual state.

see this article

0
source

All Articles