SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 260 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

NET 2.0 and later, the StyleCollection class can be used by server control developers
to store and manage Style objects for a control. Style objects stored in a StyleCollection
object are applied to different portions of the control.
The best example of how a StyleCollection object can benefit control developers is a hierarchical
control, such as the ASP.NET 2.0 and later Menu control. The Menu control allows an
ASP.NET developer to define a Style by menu depth in the control. The StyleCollectionDemo
web form provides an example of how this works by declaratively providing three Style objects
in a LevelMenuItemStyles tag:

ForeColor="Green" Font-Underline="False" />
ForeColor="Orange" Font-Underline="False" />
ForeColor="Red" Font-Underline="False" />

The MenuItemStyle objects declared in the preceding tag are applied in order of level,
so the first MenuItemStyle with a BackColor equal to "Beige" is applied to the top-level menu.
The second MenuItemStyle applies to the next submenu level, and so on.


Pages:
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6