CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Posts
    19

    Binding to an XML list of attributes

    I have an XML file structured this way:
    Code:
    <Emulators>
        <System>
            <Name>Name1</Name>
            <Kind name="lexplode"/>
            <Kind name="sexplode"/>
            <Kind name="dropbomb"/>
        </System>
    </Emulators>
    If I want to read, in XAML, from <Name> I know that I have to do:
    Code:
    <TextBox Text="{Binding XPath=Name, UpdateSourceTrigger=PropertyChanged}"/>
    But what if I want to read all the values under <Kind>> ?
    And which control could receive them, a textbox, a listbox, ..?

    Thanks a lot!!
    Last edited by Jayme65; September 7th, 2012 at 01:47 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured