From the course: Windows Presentation Foundation 4: Brushes and Colors

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Why use gradients in the UI

Why use gradients in the UI

From the course: Windows Presentation Foundation 4: Brushes and Colors

Start my 1-month free trial

Why use gradients in the UI

- [Instructor] The concept of graphic gradients on computer user interfaces has been around for a long time. The idea is that you take two colors, at least two colors, and you tell the computer to interpolate the values from one color to another over an area on the screen. In this chapter, I'll be looking at how to use gradients in WPF. Before I show you the mechanics of how to use gradients, let's talk about why you use them. Here's an example in this PNG file. This is a screenshot of a control from a control vendor, and as you look at this UI, you'll see that there's many different gradients. Let's look at a few of them. On this button, there is a radial gradient. You can see the bands of color radiating out from the center. Look at this arc around the screen. There is a dark band in the center, then a tiny, light grey band next to that, and then there's a dark grey band that changes to even a darker grey as it moves out from the center. Over in this area of the screen, there is a…

Contents