.NET 3.0 Roadshow: Building rich applications with WPF

At Dr. Dobbs' .NET 3.0 Roadshow, Brian Noyes discussed the pros and cons of Windows Presentation Foundation, Microsoft's upcoming UI framework. The "eye candy" is impressive, but the road to implementing it can be bumpy.

What Windows Presentation Foundation lacks in design-time tools it makes up for in impressive UI elements. That was the message Brian Noyes, chief architect at IDesign, delivered to attendees at the .NET 3.0 Roadshow, a Dr. Dobbs seminar that came to the Boston area last week.

Don't let XAML dazzle you and confuse you. It's really just a markup language on top of objects.
Brian Noyes
chief architectIDesign

Windows Presentation Foundation, or WPF, is Microsoft's upcoming user interface framework for .NET 3.0 applications. With it, developers can create both browser- and client-based applications with "eye candy" such as audio, video and 3D graphics.

"It's about making the user experience a little more compelling," Noyes said. "It's a lot harder to do that with existing technology."

Of the two application types, WPF's strength seems to be client apps. Here developers can implement the look and feel of a Web application, complete with forward and back buttons, simply by creating a Page class and defining navigation, Noyes said. On top of the UI improvements, the client apps inherently offer stronger security that Web apps, he added.

Another advantage WPF offers, regardless of application type, is improved data binding. At the code level, every element has data context; as long as an element is higher on the hierarchy, or upstream, it will be recognized as a data source, Noyes said. "Lob an ambient data source out there….and any elements downstream can take advantage of that data source without knowing what it is," he noted.

WPF introduces a declarative programming model called XAML, short for Extensible Application Markup Language. Part of XAML's appeal is that it is also used by Microsoft's Expression suite of products for application designers.

Noyes said XAML is like ASP in the sense that all it does is separate markup from the behavioral aspects of code. "Don't let XAML dazzle you and confuse you. It's really just a markup language on top of objects," he said.

However, Noyes pointed out, becoming familiar with XAML is an important consideration given one of WPF's pitfalls -- performance. WPF allows for drag-and-drop development, with the XAML generated automatically.

More on Windows Presentation Foundation
Reference: WPF Learning Guide

Article: XAML opens paradigm shift for application development
Since this graphical design can be slow, Noyes suggested studying the XAML carefully and then "tweaking" the code, as opposed to the graphics, as development continues.

Another downside to WPF is the availability of design-time tools. While the product's runtime capability is part of .NET 3.0 and is now in beta, its design time capability, code-named Cider, will not arrive until the next version of Visual Studio ships in 2007 or 2008.

"[WPF] will continue to be more and more compelling over time as those tools become available," Noyes said, adding that, for some developers, Windows Forms and ASP.NET 2.0 will continue to get the job done.

  • Back to "Special Report from the .NET 3.0 Roadshow"
  • Dig deeper on Windows Presentation Foundation

    0 comments

    Oldest 

    Forgot Password?

    No problem! Submit your e-mail address below. We'll send you an email containing your password.

    Your password has been sent to:

    -ADS BY GOOGLE

    SearchCloudComputing

    SearchSoftwareQuality

    SearchSOA

    TheServerSide

    SearchCloudApplications

    Close