-
Book Overview & Buying
-
Table Of Contents
.NET 4.0 Generics Beginner's Guide
By :

"Don't call us. We'll call you."
Changes are always happening around us. However, we don't care for all of them. But we do for some and we would like to know whether something has changed in our area of interest. The same is the case with software development. Think of the following situation:
A new entry is added/deleted to a collection or some elements are moved inside the collection. All views that are attached (also known as binded) to that collection need to be notified that something has changed, so that they can adjust.
This process of sharing news that something has happened is called notification and notification can be achieved in two ways:
1. We keep checking for the notification every once in a while. This is called Polling.
2. The change itself knocks on your door. This is known as the Hollywood Principle. The quotation at the beginning of the chapter is known as "Hollywood Principle" in software. This means as soon as there is an event (read...
Change the font size
Change margin width
Change background colour