Styles Inheritance

You can define a style that inherits from another one to extend it with new settings. This is accomplished by specifying the BasedOn property as follows:

image

If you now assign this new style to a button, it can take all the style properties of the base style plus the FontWeight value.

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.