I have a list box that displays items based on an xpath.
This xpath changes depending on user selection elsewhere in the gui. The xpath always refers to the same document.
At the moment i use some c# code behind to change the binding of the control to a new xpath expression.
I'd like instead to bind in xaml to an xpath and then change the value of that xpath as required.
How would i do that?