Questions tagged [xmldataprovider]

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

MSDN links

81 questions
0
votes
2 answers

How add row to DataGrid?

I have small program for edit XML-files. I using XMLDataProvider: and DataGrid:
Vasiliy Terkin
  • 165
  • 2
  • 15
0
votes
1 answer

Count New Items in WPF Listbox

I have a listbox and it's source is Binded to a XmlDataProvider. and a RSS link for the source of XmlDataProvider. It's all working correctly, getting feeds and displaying them in the listbox. I have a DispatcherTimer in the code that Refresh the…
D.K.
  • 396
  • 3
  • 6
  • 21
0
votes
1 answer

XmlDataProvider binding controls with element children

In the following code, I'm unable to reach the parameters elements in the XML file. The ListBox displays all the instructions in the XML file. The ComboBox is supposed to display all the Parameters element related to the selected instruction in the…
Hamza
  • 1
  • 4
0
votes
1 answer

XmlDataProvider reading XML with default namespace

I have realized my problem to read the XML file below was because of the Namespace and I have added support for that to the XmlDataProvider but I can't get this to work and I have not found a way to debug this.. Anyone who can spot where I go…
StefanE
  • 7,578
  • 10
  • 48
  • 75
0
votes
2 answers

C# xmldataprovider insert node

I am trying to write an editor for an xml config file. I have the xml file bound to a listview and selecting an element and then clicking edit allows you to edit an element. When the user clicks save, a delegate is called which updates the element…
Brian
  • 11
  • 2
0
votes
0 answers

How do I write-lock an XML file for my XmlDataProvider in VB.NET

I'm trying to lock an XML file for write access while it's opened in my program. My program uses an XmlDataProvider. I can't find a way to accomplish both: Partial Class MainWindow 'XmlData As XmlDataProvider - Declared in MainWindow.xaml …
LWChris
  • 3,320
  • 1
  • 22
  • 39
0
votes
1 answer

How to bind XmlDataProvider property of viewmodel with XmlDataProvider in view?

I am trying to display some xml data in TreeView. Xml data is provided by ViewModel's property of type XmlDataProvider. However, I am unable to bind it with TreeView. I am using XmlDataProvider in XAML and unable to bind the ViewModel Property with…
User1551892
  • 3,236
  • 8
  • 32
  • 52
0
votes
1 answer

XmlDataProvider, XPath and ListBox

I've been playing with XamlPad. I thought I'd embed some XML into the XAML to give me a fake set of hierarchical data. I'm not having much joy. This compiles, but doesn't show the items in the list. (Edit: The hierarchical aspect is for later. For…
Ian
  • 4,885
  • 4
  • 43
  • 65
0
votes
1 answer

Binding XamDataGrid to XmlDataProvider in MVVM

I'm unable to bind a XamDataGrid to an XmlDataProvider property in my MVVM styled project. I'm getting an XML string from a WebService call, creating an XmlDataProvider and then trying to bind it to the XamDataGrid. The XmlDataProvider is getting…
mauryat
  • 1,610
  • 5
  • 29
  • 53
0
votes
1 answer

WPF - Menu items from XML via XmlDataProvider

I am trying to parse menu items from XML via XmlDataProvider, without luck. The "Add Item 2" menu appears, but only a blank item opens from that one as a submenu. What am I doing wrong? At my XAML I have:
Adam Szabo
  • 11,302
  • 18
  • 64
  • 100
0
votes
0 answers

Save TreeView to XML and load it from XML in WPF/C#

I found some questions and answers here about how to save treeview to xml and load it from xml by using WPF/C#. However, using xmldataprovider, none of them works, and using AppendChild, exporttoxml works but there is no way to import it from xml…
0
votes
0 answers

Showing a WPF window after the binding has been performed

I have a WPF window that is shown after clicking a button on the screen. The window builds a table dynamically using an XmlDataProvider. The problem I'm experiencing is that on calling the Show() method, the window is shown in a collapsed mode for a…
Nacho1984
  • 111
  • 6
  • 17
0
votes
0 answers

Problems with Databinding while getting System.Windows.Data Error: 49 (XmlNamespace in XmlDataProvider)

I use the XMLDataProvider to show some simple Data in ListBoxes. I defined the xmlns Attribute with a value of "" (empty string). For example:
w.malgadey
  • 31
  • 5
0
votes
0 answers

How to refresh XmlDataProvider when XML file that is located on a server has been updated?

In Below code: Is there any way to update ComboBox.Items automatically when I update myXml.xml? I know if 'myXml.xml' was local, I could use FileSystemWatcher like this. but how about this one?