O'Reilly logo

Microsoft® Silverlight® Edition: Programming Windows® Phone 7 by Charles Petzold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Databases and Business Objects

Using a ListBox to display Color objects or FontFamily objects is fine for some special applications, but what are you going to put in your items control?

In general, you’ll be filling an ItemsControl or ListBox with those vague but ubiquitous entities known as business objects.

For example, if you’re creating an application that lets a user pick a hotel, it’s likely you’ll have a class named Hotel, and objects of Hotel will go into your ListBox. As a business object, Hotel is not going to derive from FrameworkElement. But it is very likely that Hotel will implement INotifyPropertyChanged so it can dynamically indicate a room rate that’s just been reduced. Another business object will maintain a collection of Hotel ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required