Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Databinding to a single element from RIA [modified]

Databinding to a single element from RIA [modified]

Scheduled Pinned Locked Moved WPF
wpfcssdatabasewcfcom
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pankaj Nikam
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups