Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

19. WPF Graphics > Exploring Brushes

Exploring Brushes

There are a LOT of UI widgets in the Framework, and they have a LOT of properties that control how they work. While you can change most of the properties in the WPF Designer and all of them in code, when I’m exploring a new widget, I often build a little window that lets me play with the control’s properties interactively. Let’s do that with the graphic objects we’re exploring in this chapter, so you can get a feel for how these “explorers” work. You might find the idea useful when you’re working on your own.

Here’s the basic structure of our Explorer. We’ll start with the SolidColorBrush tab.

image

Put on Your Thinking Hat

image

Build the basic structure of the form, and implement the Set Color button. This tab uses some controls we haven’t worked with before, so here are some hints to save you a lot of time searching MSDN:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial