Click here to Skip to main content
15,880,405 members
Home / Discussions / WPF
   

WPF

 
SuggestionRe: Set background of TreeViewItem within HierarchicalDataTemplate with converter Pin
toengi19824-Sep-12 22:03
toengi19824-Sep-12 22:03 
GeneralRe: Set background of TreeViewItem within HierarchicalDataTemplate with converter Pin
Wayne Gaylard4-Sep-12 22:11
professionalWayne Gaylard4-Sep-12 22:11 
SuggestionRe: Set background of TreeViewItem within HierarchicalDataTemplate with converter Pin
Mycroft Holmes5-Sep-12 12:52
professionalMycroft Holmes5-Sep-12 12:52 
QuestionCommandParameter is null when opening a ContextMenu Pin
AlexZieg713-Sep-12 22:57
AlexZieg713-Sep-12 22:57 
QuestionReuse template for different listbox items Pin
LionAM3-Sep-12 5:09
LionAM3-Sep-12 5:09 
Questiontreeview that has a custom treeview that consists of a button and a textbox Pin
truel3-Sep-12 4:48
truel3-Sep-12 4:48 
AnswerRe: treeview that has a custom treeview that consists of a button and a textbox Pin
Abhinav S3-Sep-12 7:12
Abhinav S3-Sep-12 7:12 
QuestionXML file source from users/appdata/roaming folder Pin
Jayme653-Sep-12 3:31
Jayme653-Sep-12 3:31 
XML
<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.Resources>
            <DataTemplate x:Key="SystemTemplate">
                <Label Content="{Binding XPath=Name}"/>
            </DataTemplate>
        </Grid.Resources>
        <Grid.DataContext>
            <XmlDataProvider x:Name="SystemData" Source="Systems.xml" XPath="Emulators/System" />
        </Grid.DataContext>
        <ListBox Height="244" HorizontalAlignment="Left" Margin="12,12,0,0" Name="ListBox1" VerticalAlignment="Top" Width="167"
                 ItemsSource="{Binding}"
                 ItemTemplate="{StaticResource SystemTemplate}"
                 IsSynchronizedWithCurrentItem="True"
                 Visibility="Visible" SelectionMode="Single">
         </ListBox>
    </Grid>
</Window>


Hello,
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!
AnswerRe: XML file source from users/appdata/roaming folder Pin
Mycroft Holmes3-Sep-12 13:11
professionalMycroft Holmes3-Sep-12 13:11 
GeneralRe: XML file source from users/appdata/roaming folder Pin
Pete O'Hanlon3-Sep-12 22:18
mvePete O'Hanlon3-Sep-12 22:18 
GeneralRe: XML file source from users/appdata/roaming folder Pin
Mycroft Holmes4-Sep-12 0:34
professionalMycroft Holmes4-Sep-12 0:34 
QuestionSilverlight-Font Pin
vickypriya2-Sep-12 19:20
vickypriya2-Sep-12 19:20 
AnswerRe: Silverlight-Font Pin
delibey6-Sep-12 9:28
delibey6-Sep-12 9:28 
QuestionRedirect from silverlight to web page with values Pin
Anupbala29-Aug-12 21:13
Anupbala29-Aug-12 21:13 
AnswerRe: Redirect from silverlight to web page with values Pin
Christian Amado30-Aug-12 7:35
professionalChristian Amado30-Aug-12 7:35 
GeneralRe: Redirect from silverlight to web page with values Pin
Anupbala31-Aug-12 20:54
Anupbala31-Aug-12 20:54 
GeneralRe: Redirect from silverlight to web page with values Pin
Pete O'Hanlon31-Aug-12 21:56
mvePete O'Hanlon31-Aug-12 21:56 
GeneralRe: Redirect from silverlight to web page with values Pin
Anupbala31-Aug-12 21:57
Anupbala31-Aug-12 21:57 
QuestionPDF Flipbook Pin
defjef28-Aug-12 23:51
defjef28-Aug-12 23:51 
AnswerRe: PDF Flipbook Pin
Pete O'Hanlon29-Aug-12 0:03
mvePete O'Hanlon29-Aug-12 0:03 
QuestionBin\Debug\AppManifest.xaml Error Pin
er.ravindra28-Aug-12 1:07
professionaler.ravindra28-Aug-12 1:07 
AnswerRe: Bin\Debug\AppManifest.xaml Error Pin
Christian Amado29-Aug-12 11:33
professionalChristian Amado29-Aug-12 11:33 
QuestionSMF player in silverlight Pin
arti s.v27-Aug-12 23:16
arti s.v27-Aug-12 23:16 
AnswerRe: SMF player in silverlight Pin
Pete O'Hanlon27-Aug-12 23:25
mvePete O'Hanlon27-Aug-12 23:25 
QuestionWPF Bind Radio Buttons To Tab Control Pin
Kevin Marois26-Aug-12 11:24
professionalKevin Marois26-Aug-12 11:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.