Extract Databinding info from DataContext Property
If DataContext Property is defined in XAML codes, you can refer to the following way to extract the specified Databinding info.
BindingExpression be = SomeUIElment.GetBindingExpression(FrameworkElement.DataContextProperty);
if(be != null)
Binding b = be.ParentBinding;
// then you take the info out, such as, Source, XPath and Mode