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 ...
Get Mastering Windows Presentation Foundation 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.