Desmond File

Blog archive

VSLive! Workshop Spotlights WPF and Silverlight Dev

VSLive! Conference attendees today took in a series of day-long, pre-conference workshops offering explorations of development in SQL Server 2008 R2, Windows Communication Foundatoin (WCF), and Silverlight/Windows Presentation Foundation (WPF). Magenic Principal Technology Evangelist Rocky Lohtka and DotNetMasters founder Billy Hollis headlined the presentation on Silverlight and WPF, detailing a powerful development environment that can be at times inspiring and frustrating.

A good example was Hollis' nifty Master Chief app, which drew applause from the audience. The app lets the user move and size a graphic of the famous Master Chief character from the Halo video game on top of the Windows 7 desktop background. Hollis said he spent days trying to figure out how to create a movable, sizable graphic for the desktop, only to discover that it could be done in exactly one line of WPF code.

Lohtka said Hollis' experience is not atypical. "You could spend hours or days trying to replicate the code, only to realize it is two lines of code in XAML," he said.

Lohtka offered a similar, bittersweet take on databinding in WPF, which he described as superior to any other databinding implementation he has seen. The problem is that the default mode for text control databinding in WPF is two-way, whereas in Silverlight the default is one-way. "You would think almost that WPF and Silverlight were written by different teams," he said. "And in fact, that's true."

Lohtka's solution to this trip wire? Always explicitly set the databinding mode, even if the setting matches the default.

At the end of the day, said Lohtka, there is no substitute for developer experience. He urged developers to get familiar with the quirks, twitches and traps of the development environment. "This is the body of knowledge we have to build up," he said.

Posted by Michael Desmond on 08/02/2010 at 1:15 PM


comments powered by Disqus

Featured

  • Syncfusion Update Improves Cross-Platform Development with .NET MAUI, Blazor

    Third-party dev toolmaker Syncfusion updated its flagship .NET-based offering with new functionality for cross-platform development.

  • Decision Tree Regression from Scratch Using C#

    Dr. James McCaffrey of Microsoft Research says the technique is easy to tune, works well with small datasets and produces highly interpretable predictions, but there are also trade-off cons.

  • Visual Studio 'Tea & Technology' Video Miniseries Starts Next Week

    The goal of the miniseries is to provide an insider's snapshot look at some of the people who contribute to shaping the Visual Studio IDE every day.

  • Microsoft Releases OpenJDK 21 Build for Java Jockeys

    Microsoft today announced its "Microsoft Build of OpenJDK 21," taking advantage of new features and functionality in Java 21.

Subscribe on YouTube