I am using XAML data binding for a ListBox whose ItemSource set to a TypeA object list. One user interface element in an ItemTemplate for a ListBox bound to the TypeA property as follows:
Source="{Binding PropertyName, Converter={StaticResource customConverter}}"
Now, instead of binding to a specific property, I want the user interface element to be attached to the entire TypeA instance, so that the user converter can calculate the value from several properties. The question is, what obligatory expression can I use to achieve this?
data-binding silverlight xaml
Buu nguyen
source share