Questions tagged [xmldataprovider]

provides data binding from XML in Microsoft Windows Presentation Foundation (WPF) 4

MSDN links

81 questions
2
votes
2 answers

Using relative URI as XmlDataProvider's Source

Is it possible to use a relative URI when setting the Source property on an XmlDataProvider object in .NET? I get the following exception: IOException:System.IO.IOException: Cannot locate resource 'configuration.xml'. When I set the Source property…
sourcenouveau
  • 29,356
  • 35
  • 146
  • 243
1
vote
1 answer

Numerical string sorting in a listbox

I have a ListBox which ItemSource is bound to a CollectionViewSource. The CVS Source is an XmlDataProvider. So the ListBox lists all nodes (name attribute) i specified. Now those nodes have attributes, and i want the ListBox to be sorted by…
ch40s
  • 580
  • 1
  • 7
  • 19
1
vote
1 answer

Binding ListBox to XmlDataProvider

Can anyone tell why this isn't working. It is really simple but the ListBox is empty when starting it. The code behind contains only InitializeComponent() nothing else. Hopefully someone has an idea ...
user1078325
  • 11
  • 1
  • 2
1
vote
1 answer

Creating WPF ComboBox Controls Dynamically

I need to create a DataGrid dynamically in WPF. The grid should be populate with the Rows and columns with dynamically generated controls (comboBox,TextBoxes). I need to populate the grid with Three coulmns and N-rows(the number of rows is based on…
saravana
  • 131
  • 1
  • 2
  • 14
1
vote
2 answers

How to select WPF TreeViewItem which has been populated using XmlDataProvider?

I have a WPF TreeView which has been populated from an XML file at runtime. I click on a button and a FileDialog box appears and then I select an XML file. Then the XML file is loaded in the TreeView. I have used a XmlDataProvider and some…
Z Ahmed Chisty
  • 68
  • 1
  • 12
1
vote
1 answer

Using a SVN repo file as a source for an XML data provider

As title really, how/is it possible to set the Source property of an XmlDataProvider to use a file held on our SVN repository? I've tried this: But it doesn't work,…
Psytronic
  • 6,043
  • 5
  • 37
  • 56
1
vote
2 answers

Listbox content not being populated with content from xml when using XmlDataProvider

I have a very simple application resource specified as
Nat
  • 11
  • 1
1
vote
0 answers

how can i make my xmldataprovider update my datagrid's content on filechange?

I've been following this tutorial and bound my Datagrid successfully to an XML data provider resource. My grid didn't update when the xmlfile (that the xmldataprovider was referenced to) changed. So I followed this guy's tutorial and while I could…
Mat
  • 41
  • 1
  • 5
1
vote
2 answers

Set XMLDataProvider source dynamically

While all examples and sources I found is to set the resource in XAML statically, I would only know in run time the name of the XML file to be connected with XMLDataProvider. Is there a way to set either in code behind or in…
KMC
  • 19,548
  • 58
  • 164
  • 253
1
vote
1 answer

set XmlDataProvider source without saving file

in my browser wpf application i use databinding to xml that comes from my database. to bind it the better way i use the XmlDataProvider. in the beginning i declare
user362249
  • 55
  • 1
  • 6
1
vote
0 answers

Update ItemsControl when XmlDataProvider source is changed

I have an ItemControl Setup to scroll some text from an RSS feed. The rss feed is an external XML document that is being read by the items control, and the contents of the RSS feed are scrolled across the screen like you see on any 24-hour news…
EMAW2008
  • 289
  • 2
  • 15
1
vote
1 answer

Binding to XMLDataProvider in Code Behind

i have a problem moving a XMLDataprovider Binding with XPath from Xaml to code behind. Labels.xml MainWindow.xaml
1
vote
1 answer

ListBox with two ItemsSource and DataTemplate

I'm sure this is simple, but I'm not finding the solution. how do I bind to two arrays within a data source with one ListBox? Here is a sample of the data:
EMAW2008
  • 289
  • 2
  • 15
1
vote
1 answer

XmlDataProvider and XPath bindings don't allow default namespace of XML data?

I am struggling to work out how to use default namespaces with XmlDataProvider and XPath bindings. There's an ugly answer using local-name but that is not acceptable to the client who wants this XAML to be…
Andy Dent
  • 17,578
  • 6
  • 88
  • 115
1
vote
1 answer

How can I add a node in XML file from TextBox using XmlDataProvider in WPF

I want to add a node named list under product node. code in xaml is:
miltan
  • 1
  • 3