Binding to an XML list of attributes
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 1 of 1

Thread: Binding to an XML list of attributes

  1. #1
    Join Date
    Apr 2011

    Binding to an XML list of attributes

    I have an XML file structured this way:
            <Kind name="lexplode"/>
            <Kind name="sexplode"/>
            <Kind name="dropbomb"/>
    If I want to read, in XAML, from <Name> I know that I have to do:
    <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 02: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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center