O'Reilly logo

Mastering Windows Presentation Foundation by Sheridan Yuen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Layering visuals

So far, we've just looked at simple redefinitions of the standard controls, by altering shapes, sizes, borders and other common properties. However, we can do much more than that with WPF. Before continuing with this section, it is important to know that the more visuals that each control is comprised of, the longer it will take to render them and so, this can negatively affect performance.

As such, it's important not to overdo the visual aspect of our controls if our application will be run on slow, old computers. Conversely, if we know that our end users will have plenty of RAM and/or graphics cards, then we can go the extra distance and develop visually stunning controls. Let's look at some techniques that we can use to improve ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required