Databinding to a single element from RIA [modified]
-
I have a accordion control on which I have databound two properties from the database. One is Location and other is theatre. When the page loads, the accordion shows different locations for each of the theatres. Actually I want only a single location for the theatres which come under that theatre part. The screen shot for reference is as follows http://lh4.ggpht.com/_rZz85WGZ4Vg/S5UhufYlUZI/AAAAAAAAAWQ/zXZiG4HTV9o/myScree.JPG[^] The XAML code for the accordion is as follows:
<layoutToolkit:Accordion HorizontalAlignment="Stretch" Grid.Row="1" VerticalAlignment="Stretch" Grid.RowSpan="2" Margin="0,0,0,40" BorderBrush="{x:Null}" x:Name="theatresAccordian"> <layoutToolkit:Accordion.ContentTemplate>< <DataTemplate> <TextBlock Text="{Binding Name}"/> </DataTemplate> </layoutToolkit:Accordion.ContentTemplate> <layoutToolkit:Accordion.ItemTemplate > <DataTemplate> <TextBlock x:Name="_headertext" Text="{Binding Location}"/> </DataTemplate> </layoutToolkit:Accordion.ItemTemplate> </layoutToolkit:Accordion>
I have tried searching search engines but was in vain :(Always Keep Smiling. Yours Pankaj Nikam
modified on Monday, March 8, 2010 11:23 AM