Posted By: JohnAskew | Aug 14th @ 8:17 AM
page 1 of 1
Comments: 1 | Views: 697
JohnAskew
JohnAskew
9 girl in pink sweater

I can't seem to get a WPF form with controls bound to its DataContext XmlDataProvider via XPath to load the Xml file from disk and refresh the controls. Nothing I've found online works.

 

I've tried changing the Source as well as Document.Load but nothing changes the data in the controls. It is either the original xml data or blank.

 

Anyone know how to change an Xml document at runtime such that WPF bindings change with them?

figuerres
figuerres
???

Now this might be wrong but i think it's close, i have been doing stuff learning silverlight and the first thing that pops up in this is a question:  is the xml  chnage generating the needed ChangeNotify events? and is the wpf form listenting for them?

 

in silverlight i have been reading about dependancey properties and the IObservable that lists need for databinding.

if the data/class is not shouting out to the data controls that it's got new data then the controls do not know to go look.

 

hope that was not too silly and basic...

page 1 of 1
Comments: 1 | Views: 697
Microsoft Communities