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

Thread: XML file source from users/appdata/roaming folder

  1. #1
    Join Date
    Apr 2011

    XML file source from users/appdata/roaming folder

    <Window x:Class="MainWindow"
        Title="MainWindow" Height="350" Width="525">
                <DataTemplate x:Key="SystemTemplate">
                    <Label Content="{Binding XPath=Name}"/>
                <XmlDataProvider x:Name="SystemData" Source="Systems.xml" XPath="Emulators/System" />
            <ListBox Height="244" HorizontalAlignment="Left" Margin="12,12,0,0" Name="ListBox1" VerticalAlignment="Top" Width="167"
                     ItemTemplate="{StaticResource SystemTemplate}"
                     Visibility="Visible" SelectionMode="Single">
    I've bind an XML file to a ListBox.
    Everything's working right..but the XML file is read as a resource for now...what I would like is being able to read it from the users/appdata/roaming folder! (that's where user's data are saved..so I would like to be able to read from there too!)
    So, how should I adapt that 'Source=""' part to reference the users/appdata/roaming folder?

    Hope that I'm clear! Thanks for your help!
    Last edited by Jayme65; September 3rd, 2012 at 08:20 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

On-Demand Webinars (sponsored)