Prev | Current Page 519 | Next

Matthew MacDonald

"Pro WPF with VB 2008: Windows Presentation Foundation with .NET 3.5"

For example, one could imagine that a company like Microsoft could create an alternate
interface to a popular web-based application like Hotmail using an XBAP. To program an XBAP
successfully, you need to embrace the limitations of partial trust and code accordingly, which
takes some getting used to.
nNote If you??™re planning to build WPF applications that run in a web browser over the Internet, you
may want to consider WPF??™s scaled-down sibling, Silverlight 2.0. Although it??™s not as powerful as WPF,
Silverlight 2.0 borrows a substantial portion of the WPF model and adds support for cross-platform use.
(For example, you can run a Silverlight 2.0 application in a Safari browser on a Mac computer.) For more
information about Silverlight, refer to http://silverlight.net.
CHAPTER 9 n PAGES AND NAVIGATION 291
Commands
In Chapter 6, you learned about routed events, which you can use to respond to a wide range
of mouse and keyboard actions. However, events are a fairly low-level ingredient. In a realistic
application, functionality is divided into higher-level tasks. These tasks may be triggered by a
variety of different actions and through a variety of different user-interface elements, including
main menus, context menus, keyboard shortcuts, and toolbars.
WPF allows you to define these tasks??”known as commands??”and connect controls to
them so you don??™t need to write repetitive event handling code.


Pages:
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531