concept item in category silverlight

appears as: items, items, n item, item, The item
Silverlight 4 in Action: Silverlight 4, MVVM, and WCF RIA Services

This is an excerpt from Manning's book Silverlight 4 in Action: Silverlight 4, MVVM, and WCF RIA Services.

Figure 2.2. The default behaviors in Expression Blend include items from utilitarian, to sound playing, to complex interactions such as mouse drag and drop. Additional behaviors may be found on the Microsoft Expression Community Gallery at http://gallery.expression.microsoft.com.

The namespace shown in listing 2.5 will only apply to the grid LayoutRoot and its children. Controls outside of that hierarchy won’t have access to the controls namespace or prefix. You’ll typically find this inside complex styles in resource dictionaries. The same approaches to referencing namespaces and assemblies apply to resource dictionaries, pages, and other types commonly associated with XAML. Though it’s important to understand the rules for referencing namespaces, in practice, the tooling will create the namespaces for you either by IntelliSense or when you drag and drop items into the markup editor or onto the design surface.

In the previous chapter, we covered the basics of text, including how to display and edit it. Two of the items discussed—the TextBox and RichTextBox—are both actually controls. The TextBlock isn’t.

Listing 10.8 shows the appearance of a closed ComboBox. As you can see, this control delivers a compact approach for displaying a list of items. In fact, this control resembles the DropDownList found in ASP.NET and the select element used in HTML. But, unlike those controls, each item in the ComboBox can have a fully customized appearance; each item is a ComboBoxItem, which happens to be a kind of ContentControl. This fact enables you to recreate the list shown in listing 10.7 in the more compact form of a ComboBox.