??? Commands.Most users realize that it doesn??™t matter whether they trigger the Open
command through a menu or a toolbar; the end result is the same. Now that abstraction
is available to your code, you can define an application command in one place and
link it to multiple controls.
CHAPTER 1 n INTRODUCING WPF 5
??? Declarative user interface. Although you can construct a WPF window with code,
Visual Studio takes a different approach. It serializes each window??™s content to a set of
XML tags in a XAML document. The advantage is that your user interface is completely
separated from your code, and graphic designers can use professional tools to edit your
XAML files and refine your application??™s front end. (XAML is short for Extensible Application
Markup Language, and it??™s described in detail in Chapter 2.)
??? Page-based applications. Using WPF, you can build a browser-like application that lets
you move through a collection of pages, complete with forward and back navigation
buttons. WPF handles the messy details, such as the page history. You can even deploy
your project as a browser-based application that runs right inside Internet Explorer.
Resolution Independence
Traditional Windows applications are bound by certain assumptions about resolution. Developers
usually assume a standard monitor resolution (such as 1024 by 768 pixels), design their
windows with that in mind, and try to ensure reasonable resizing behavior for smaller and
larger dimensions.
Pages:
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83