Skip to Main Content
Fluent Visual Basic®
book

Fluent Visual Basic®

by Rebecca M. Riordan
October 2011
Intermediate to advanced content levelIntermediate to advanced
880 pages
14h 44m
English
Sams
Content preview from Fluent Visual Basic®

21. Templates

In the last chapter we saw how you can use resources, styles and triggers to simplify defining the appearance and visual behavior of a WPF control, but the basic structure of the elements remained the same—we changed the size and color of a button and made it move around, but it still looked like a button. In this chapter, we’ll take control of that structure as well by using WPF templates to redefine the visual tree of any FrameworkElement or FrameworkContentElement.

Want your buttons to be triangular? No problem. Does your application really require an oval window? You can make that happen using templates.

We’ll start by examining some fundamental elements you can use to build your new versions of controls, and then we’ll look ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Visual Basic® 2012 How to Program, Sixth Edition

Visual Basic® 2012 How to Program, Sixth Edition

Paul Deitel, Abbey Deitel
Microsoft® Visual Basic® 2010 Developer’s Handbook

Microsoft® Visual Basic® 2010 Developer’s Handbook

Klaus Löffelmann and Sarika Calla Purohit

Publisher Resources

ISBN: 9780132900577Purchase book