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
  • PrintPrint
Share this Page URL
Help

Chapter 4. Controls, Layouts, and Behaviors

Chapter 4. Controls, Layouts, and Behaviors

Unless you intend to build a UI entirely composed of interactive geometries, the chances are very good that your WPF or Silverlight applications will require the use of various controls. As expected, the WPF and Silverlight APIs both ship with a set of intrinsic controls that allows you to gather user input and respond to user actions. In this chapter, you will learn how to use the Expression Blend IDE to configure UIs consisting of controls arranged in various layout managers. As you will see, the WPF and Silverlight frameworks both ship with a collection of layout objects, including Grid, StackPanel, and Canvas (among others), all of which can be configured via the Blend artboard.

Once you feel comfortable using Blend to lay out graphical user interfaces (GUIs), you will then be introduced to the role of behaviors. As introduced in Chapter 4, you learned that behaviors allow you to incorporate a number of advanced features into an application, without the need to author procedural code. For example, there are behavior objects that enable items to be moved via the mouse, control animation storyboards (as you saw in the previous chapter), change property values (or call methods) based on defined conditions, and so on.


  

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


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint