Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

DataBinding and ListView

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 02-14-2008   #1 (permalink)
Lammert
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 SpecsSystem Spec
Closed Thread

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


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51