Outline

In this video...

You will learn about control state and how it works.

Control state is centered around three pairs of state:

  • Pristine vs. Dirty
  • Touched vs. Untouched
  • Valid vs. Invalid

Each form control and the form itself is assigned one value from each pair of states depending on the control. By default, all controls and pristine and untouched. They become touched when they gain and lose focus, they become dirty when their values are changed.

All controls are valid or invalid based on the value of the control in concert with any validation rules applied to the control.

 

I finished! On to the next chapter