Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expression Blend VSM vs Event Driven

I recently used Expression Blend and I found that it has something called Visual State Manager, what is the difference between it and the regular event driven model, and which is better?

like image 973
Ehab ELwazery Avatar asked Nov 14 '22 16:11

Ehab ELwazery


1 Answers

Events are for instances of "things" happening e.g.:

  • Was I clicked?
  • Did my timer fire?
  • Is my data ready?

The Visual State Manager is used to manage multiple simultaneous states of a control.

  • Am I pressed?
  • Is the mouse over me?
  • Am I checked?

Events are just callbacks to listening objects, while states are visual states, so basically there are used for completely different purposes. Events can trigger state changes, but that is the only overlap.

like image 167
Gone Coding Avatar answered Dec 28 '22 11:12

Gone Coding