Questions tagged [xmldataprovider]

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

MSDN links

81 questions
0
votes
1 answer

Programmatic binding of listbox not working in WPF

I have a user control that sets programmatically a listbox's data source (an XmlDataProvider and a DataTemplate to be exact) but during runtime it never properly shows up. When the user control is loaded. All the setup for the dataproviders are not…
0
votes
3 answers

How to select a databound TreeViewItem?

I have a XML databound to a TreeView with a XmlDataProvider. If i add a subnode to the XML the TreeView shows it, but how can i select this item? XAML:
jwillmer
  • 3,570
  • 5
  • 37
  • 73
0
votes
1 answer

Binding XmlDataProvider Source attribute to a static function in another form?

I am trying to bind an XmlDataProvider with a Source attribute to a static function in another form. Here's XmlDataProvider line - I would like it's Source…
dinbrca
  • 1,101
  • 1
  • 14
  • 30
0
votes
1 answer

How to read an xml file using xmldataprovider in wpf C#

I have a xaml file with my wpf controls defined, I am binding all its label controls to an xml file and populating from this file. I am doing using xmldataprovider using its source property
andrew
  • 19
  • 1
  • 8
0
votes
0 answers

WPF Databinding with XMLDataProvider and Namespaces

We have a XML File with different Namespaces, you can see it below, and i would like to bind the xml file to the XmlDataProvider. The Namespaces need to be removed, otherwise i cannot load the xml into the data source. Problem: An unhandled…
bibe
  • 1
  • 3
0
votes
1 answer

XPath filter on value

I've got a ListBox with an XMLDataProvider that I want to filter on the specific value of a node. I've tried the following but it returns the full again.
0
votes
1 answer

Binding to external XML doesn't work, but adding XML using XData makes it work

Here is the code for App.xaml:
Vitalij
  • 4,587
  • 9
  • 42
  • 65
0
votes
1 answer

How to know in codebehind when XmlDataProvider has filled target controll with data

The title of my question says it already. How can I check if my XmlDataProvider has filled my DataGrid in code behind. It already works, but I want to check when it is finished so I can style the cells in my DataGrid(ForeGround, Background,…
NickGames
  • 312
  • 1
  • 18
0
votes
1 answer

Passing Button_Click Tag to another page WPF C#

Hi have a button with click event & tag value binding from an XmlDataProvider;
BENN1TH
  • 2,003
  • 2
  • 31
  • 42
0
votes
1 answer

Binding user-selected filename to xml data provider source

I want to allow the user to choose an xml file (by clicking on a menu item) for it to then be processed using the xml data provider in codebehind if possible. How would I do this? I can't bind on the source like this:
user3791372
  • 4,445
  • 6
  • 44
  • 78
0
votes
1 answer

Value converter change back to source

I am using xml binding with my wpf controls, the XMLDocument is an exposed property of ViewModel. Here is the code: public class ViewModel : ViewModelBase { private XmlDocument _xmlDataProvider; private string _name; public string Name …
Ishan070692
  • 513
  • 4
  • 22
0
votes
1 answer

Bind xmldataprovider using MVVM pattern

I have a view model in wpf application, which requires high usage of XML. For this I'm using XMLDataProvider also there are some other properties that are not dependent upon the XML. So my viewmodel looks like this: public class ViewModel :…
Ishan070692
  • 513
  • 4
  • 22
0
votes
1 answer

Attribute 'xmlns' in XML file element causes XmlDataProvider to not read past the node

I am trying to read and parse an xml file in xaml and am running into a roadblock because one of the elements (teststandfileheader) in the xml file contains an attribute for 'xmlns' as follows:
0
votes
1 answer

Binding data from XmlDataProvider to a ListBox fails in XAML in WPF

Recently I started to learn WPF. When learning about binding data, I create a listbox and binds data from a XmlDataProvider to it. Here's the code for XmlDataProvider: ......
0
votes
1 answer

How to extract XMLElement of selectedItem of ListBox in WPF?

Problem Background: In my WPF application, in one of the window/page contains 3 List Boxes and 1 ComboBox. These 3 ListBoxes are binded with XML dataprovider and there is no issues. I mean when 1st listbox selection changes automatically updates…
ShanmugaKS
  • 31
  • 3