WPF

Windows Presentation Foundation

Creating a Gradient Brush Using a Color Resource

I have been playing with the Blend August Preview and in particular the resource feature. This is an excellent feature that allows you to style your user interface from a single location much like CSS does for web pages. I created a new project. I added a rectangle to the window and changed its color to a nice shade of blue:   I created another rectangle next to the original rectangle and removed the stroke from both of them:   Clicking on the original rectangle, I converted the color to a resource named MyColor and put...