The two samples below demonstrate a Calendar HTC component implemented using two variations of Element Behaviors. The first page implements a regular Element Behavior and the second implements an Element Behavior with a ViewLink. The samples show how a ViewLink encapsulates document content and permits greater control over CSS Style inheritance.
Control: Clicking the button below will apply a new stylesheet rule to all of the <TD> elements on page 1 and 2. Notice that the <TD> elements in the Element Behavior sample are changed, but the ViewLink elements stay the same.