#171 – Other Base Classes – Freezable and Animatable
We can add two other important base classes to our class hierarchy–Freezable and Animatable. Freezable - Implements a “freezable” pattern, in that the object can provide a “frozen” read-only copy of...
View Article#173 – You Can Put Freezable Objects Into a Read-Only State
The idea of an object deriving from Freezable is that it normally is in a read/write state, but can be explicitly put into a read-only state using the Freeze method. A frozen object can be used more...
View Article#174 – Predefined Brushes Are Already Frozen
All of the brushes in the predefined Brushes collection are already in a frozen state, meaning that they are read-only. Being frozen means that they will perform more efficiently when using them to...
View Article#221 – Changing a Brush at Run-Time
You can change aspects of a Brush, such as its color, at run-time and any objects that use that brush will automatically be redrawn. Let’s say that we have several controls in a window that make use of...
View Article
More Pages to Explore .....