Gets or sets a path to a value on the source object to serve as the visual representation of the object.
Assembly: PresentationFramework (in PresentationFramework.dll)
In the following example, the static resource named places is defined as a collection of Place objects, in which each Place object has a CityName property and a State property. The prefix src is mapped to the namespace where the data source Places is defined. The prefixes scm and dat are mapped to the System.ComponentModel and System.Windows.Data namespaces, respectively.
The following example creates a view of the data collection that is sorted by the city name and grouped by the state.
The view can be a binding source, as in the following example. Because of the specified Place object is shown with its CityName value. If is not specified and there is no DataTemplate, then the ListBox displays a string representation of each object in the underlying collection (in this case, "SDKSample.Place")., each
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0