![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | DataBinding and ListView I have an application with two ListViews. The datasource of the ListView is created with a converter (see XAML code). I use a converter for the ListView for the following reason: when the selected entity is an inactive entity: by default it isn't loaded into the List. The converter add the inactive entity to the list with the active entities. When I select a specific project in the first ListView, the data in the second ListView must be reloaded and based on the selected activity in the first ListView. How can I achieve this in XAML? (The ListViews are nested in a DataTemplate) <ListView Name="LstProjects" MaxHeight="200" VerticalAlignment="Stretch" ItemsSource="{Binding Mode=OneTime, ConverterParameter=Event.Project, Path=Project, Converter={StaticResource projectDataSourceSelector}}" SelectedItem="{Binding Project}"> </ListView> <Label FontWeight="Bold">Project activity</Label> <ListView Name="LstProjectActivities" VerticalAlignment="Stretch" ItemsSource="{Binding Mode=OneTime, ConverterParameter=Event.ProjectActivity, Converter={StaticResource projectActivityDataSourceSelector}}" SelectedItem="{Binding ProjectActivity}" MaxHeight="200"> </ListView> |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WPF binding error when databinding a ComboBox inside a ListView it | jeff.townes | Avalon | 0 | 05-01-2007 11:05 AM |
| Getting ListView items to exand to width of ListView | John Dunn | Avalon | 0 | 11-29-2006 12:45 PM |
| DataBinding to indexer | =?Utf-8?B?QWxleEI=?= | Avalon | 11 | 09-25-2006 08:31 AM |
| DataBinding to indexer | AlexB | Avalon | 0 | 09-20-2006 09:59 AM |
| 3D, Canvas, and Databinding | Christopher Bennage | Avalon | 5 | 05-31-2006 02:34 PM |